void CMy1Dlg::OnButton19()
{
// TODO: Add your control notification handler code here
oldproc=(WNDPROC)SetWindowLong(m_hWnd,GWL_WNDPROC,(LONG)NewProc);
}
提示是:
'GET_KEYSTATE_LPARAM' : undeclared identifier
'FAPPCOMMAND_KEY' : undeclared identifier
msdn的解释是:
lParam
Use the following code to crack the lParam parameter.
cmd = GET_APPCOMMAND_LPARAM(lParam);
uDevice = GET_DEVICE_LPARAM(lParam);
dwKeys = GET_KEYSTATE_LPARAM(lParam);
Where cmd indicates the application command. This parameter can be one of the following values.
Where uDevice indicates the input device that generated the input event. It can be one of the following values. Value Meaning
FAPPCOMMAND_KEY User pressed a key.
FAPPCOMMAND_MOUSE User clicked a mouse button.
FAPPCOMMAND_OEM An unidentified hardware source generated the event. It could be a mouse or a keyboard event.
没有说不能用呀?为什么会这样?请问要如何解决?