I want to limit the text in an Edit Control but don't see how I would obtain the handle of that edit control (see hWndControl in the code below), so as to be able to use SendMessage.
I do see the edit control with an ID of IDC_EDIT1 in the properties pane. Am using Visual C++ out of Visual Studio.Net.
HWND hWndControl;
int lResult;
lResult =SendMessage( hWndControl, EM_SETLIMITTEXT, 2,0);
I do see the edit control with an ID of IDC_EDIT1 in the properties pane. Am using Visual C++ out of Visual Studio.Net.
HWND hWndControl;
int lResult;
lResult =SendMessage( hWndControl, EM_SETLIMITTEXT, 2,0);