首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 开发语言 > VC/MFC >

编辑框的en_setfocus消息的有关问题

2012-05-08 
编辑框的en_setfocus消息的问题BOOL CMyEdit::PreTranslateMessage(MSG* pMsg){if(pMsg-messageWM_COMM

编辑框的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.

热点排行