编辑框的en_setfocus消息的问题
BOOL CMyEdit::PreTranslateMessage(MSG* pMsg)
{
if(pMsg->message==WM_COMMAND)
{
if((HIWORD(pMsg->wParam))==EN_SETFOCUS)
{
switch(LOWORD(pMsg->wParam))
在自定义编辑框类(从CEdit派生)的pretranslatemessage里这样写没有效果啊
在第一个if里放一个messagebox进去 根本没弹出
这是怎么回事?
[解决办法]
The WM_COMMAND message is sent when the user selects a command item from a menu, when a control sends a notification message to its parent window, or when an accelerator keystroke is translated.