Ive declared another TCHAR variable this time 15 bytes in size. The user inputs information into a dialog, which I would like to check. How can I check whether or not the user has entered any data?
Printable View
Ive declared another TCHAR variable this time 15 bytes in size. The user inputs information into a dialog, which I would like to check. How can I check whether or not the user has entered any data?
Just check if the TCHAR array is empty. Or you might want to use GetWindowTextLength if the data is from a window.
Or use in the callback
case ID_EDIT:
if (EN_CHANGE == HIWORD(wParam))//will only continue if text has been entered / removed.