I meens when somebody is writing in the edit box after limited amount of chars.. person used nothing new is appearing.
Posted on 2003-03-20 05:48:50 by AceEmbler
EM_SETLIMITTEXT ?
Posted on 2003-03-20 06:50:29 by f0dder
yeah,

invoke SendDlgItemMessage,hWnd,IDC_EDIT_SEC_NAME,EM_SETLIMITTEXT,8,0
Posted on 2003-03-20 09:27:52 by wizzra
Thanks it is nothing to be surprised but it is working. But i have used SendMessage. Becouse i ain't using dialog box.
Posted on 2003-03-20 13:48:34 by AceEmbler
Yup, if you like you can use SendDlgItemMessage also with 'normal' windows (if you have set an item ID at creation time) :D
Posted on 2003-03-20 14:28:34 by LuHa
can i do that without any disadventages ? (speed, less error prone code) ?
Posted on 2003-03-20 15:19:11 by AceEmbler
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:.
Posted on 2003-03-20 15:27:41 by LuHa