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?

Developer technologies | C++
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.