How to prevent user from writing this special chars in EditBox, without subclassing if posible. I believe there is such a flag to set or sth.
Posted on 2003-06-25 13:55:26 by AceEmbler
There is no way without subclassing the editbox.
Posted on 2003-06-25 15:29:05 by donkey
Maybe you can use the EN_UPDATE notification, something like this (sorry for C code)

case WM_COMMAND:


switch(LOWORD(wParam))
{
case IDC_MY_OWN_EDIT_BOX_WITH_SPECIAL_KEY_HANDLING:

if(HIWORD(wParam) == EN_UPDATE)
{
// do your stuff here, reading text from edit box and removing unwanted chars
}
}
break;

[...]


I don't know if this way will work, make some tests.
Posted on 2003-06-25 16:18:30 by LuHa
Thx All but i chose subclassing instead of that second trick.
Posted on 2003-06-26 05:39:02 by AceEmbler