I meens when somebody is writing in the edit box after limited amount of chars.. person used nothing new is appearing.
EM_SETLIMITTEXT ?
yeah,
invoke SendDlgItemMessage,hWnd,IDC_EDIT_SEC_NAME,EM_SETLIMITTEXT,8,0
invoke SendDlgItemMessage,hWnd,IDC_EDIT_SEC_NAME,EM_SETLIMITTEXT,8,0
Thanks it is nothing to be surprised but it is working. But i have used SendMessage. Becouse i ain't using dialog box.
Yup, if you like you can use SendDlgItemMessage also with 'normal' windows (if you have set an item ID at creation time) :D
can i do that without any disadventages ? (speed, less error prone code) ?
I don't know the actual implementation of SendDlgItemMessage or SendMessage, maybe SendMessage is a bit faster? The fact is that I rarely store the HWND of child controls, while is usually assign constant IDs to interact with them. If you use SendDlgItemMessage your program maybe will be a bit slower, but it will need less ram :grin:.