BOOL CBaseComboBox::PreTranslateMessage(MSG* pMsg)
{
if(pMsg->message==WM_KEYDOWN && pMsg->wParam==13)
pMsg->wParam=9;
return CComboBox::PreTranslateMessage(pMsg);
}
中MSG*pMsg 是结构体指针 它是指向哪里的呢?
{
if(pMsg->message==WM_KEYDOWN && pMsg->wParam==13)
pMsg->wParam=9;
return CComboBox::PreTranslateMessage(pMsg);
}
中MSG*pMsg 是结构体指针 它是指向哪里的呢?
HWND hwnd;
UINT message;
WPARAM wParam;
LPARAM lParam;
DWORD time;
POINT pt;
} MSGMSG* pMsg ;这回可以看出来了吧?
pMsg指向的就是上面的结构体的首地址;