BOOL IsCtrlPressed()
{
return ((GetKeyState(VK_CONTROL) & (1<<(sizeof(SHORT)*8-1))) != 0);
}
BOOL IsAltPressed()
{
return ((GetKeyState(VK_MENU) & (1<<(sizeof(SHORT)*8-1))) != 0);
}
BOOL IsShiftPressed()
{
return ((GetKeyState(VK_SHIFT) & (1<<(sizeof(SHORT)*8-1))) != 0);
}
posted on 2010-10-18 10:53
张志松 阅读(2386)
评论(3) 编辑 收藏 引用