I have added one edit control to a dialog and attached a string variable to that. But i want only integers can be entered to the edit control and not characters.(N.B. I have attached a string variable to that edit control because i want that value to be received as string. Please help.
Thanks a lot to all of you as all are good suggestions. But as per my requrement i feel "Add the Number style to Edit" will be the best solution. But i do not know exactly how to set it and also i am not able find the same.
Can you please tell me how to set this style.
on the resource editor, there is a "decimal" property which make the editBox accept only the 10 decimal digits...
if you'd like to allow the . character, or a sign character like + or -, you'll have to overload the WM_CHAR event...
m_pMainWnd = &dlg;
int nResponse = dlg.DoModal();
if (nResponse == IDOK)
this code is located in the main class of the program so that it shows NO ERRORS ..and NO MENU ... i'm sorry for buggin' you but i need help thank you
hi, I am student and am actually doing a project on landscape generator... its quite tough.. my problem is that am nt being able to load a bitmap image from files to my picture box when the user click on a specific button.. plz help me...