64,690
社区成员
发帖
与我相关
我的任务
分享
if ( HIBYTE( GetKeyState( VK_LBUTTON ) & GetKeyState( VK_RBUTTON ) ) )
{
MessageBox( 0, _T("Left & Right"), _T("Test"), MB_OK );
}
wParam
Indicates whether various virtual keys are down. This parameter can be one or more of the following values.
MK_CONTROL
The CTRL key is down.
MK_LBUTTON
The left mouse button is down.
MK_MBUTTON
The middle mouse button is down.
MK_RBUTTON
The right mouse button is down.
MK_SHIFT
The SHIFT key is down.
MK_XBUTTON1
Windows 2000/XP: The first X button is down.
MK_XBUTTON2
Windows 2000/XP: The second X button is down.