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?
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.
1978 Silver Anniversary Corvette
Or use in the callback
case ID_EDIT:
if (EN_CHANGE == HIWORD(wParam))//will only continue if text has been entered / removed.
"Man alone suffers so excruciatingly in the world that he was compelled to invent laughter."
Friedrich Nietzsche
"I spent a lot of my money on booze, birds and fast cars......the rest I squandered."
George Best
"If you are going through hell....keep going."
Winston Churchill