I am using MFC, to develop a Mobile App. For one of the CEdit controls, in the dialog box, I declared a variable as long int as follows.
DDV_MinMaxUInt(pDX, m_txtCurrentValue, 1, 2000);
So whenever, I try to close the dialog box with invalid values (integers that is not in the range specified or which are alphabetic characters.) it throws a message and focuses that particular control.( Done automatically)
Now my question is that, I have a button and when ever this button is clicked, how can the same validation, functionality be called?