How to allow the user to enter or type only 1 to 2147483647 in the MFC CEdit control without using DDV_MinMaxLong?

abc abc 351 Reputation points
2022-05-18T15:12:14.97+00:00

Hi,

How to allow the user to enter or type only 1 to 2147483647 in the MFC CEdit control without using DDV_MinMaxLong or DDV_MinMaxInt?

if I use DDV_MinMaxInt or DDV_MinMaxLong , the user is allowed to enter or type more than 2147483647 and If User enter more than 2147483647 getting the prompt message "Enter an integer between 1 and 2147483647. My requirement is user should not get prompt message and the user should be allowed to enter only 1 to 2147483647.

Is it possible to achieve my requirement using MFC CEdit Control and how to achieve this?

C++
C++
A high-level, general-purpose programming language, created as an extension of the C programming language, that has object-oriented, generic, and functional features in addition to facilities for low-level memory manipulation.
3,526 questions
{count} votes