mfc - DDV_MinMaxUInt : Custom Validation Message -
i using mfc, develop mobile app. 1 of cedit controls, in dialog box, declared variable long int follows.
ddv_minmaxuint(pdx, m_txtcurrentvalue, 1, 2000);
so whenever, try close dialog box invalid values (integers not in range specified or alphabetic characters.) throws message , focuses particular control.( done automatically)
now question that, have button , when ever button clicked, how can same validation, functionality called?
you can call these routines yourself. did many years ago.
this link may help:
http://msdn.microsoft.com/en-us/library/57weza95%28v=vs.80%29.aspx
Comments
Post a Comment