vc中,怎么判断键盘没有按键按下

vc中,如何判断键盘没有按键按下?
在c中,这个很好办,察看bioskey即可,

但是在vc中,如何判断键盘没有[color=#FF6600][/color]按键按下?

------解决方案--------------------
BOOL CExeSecond::PreTranslateMessage(MSG* pMsg) 
{
// TODO: Add your specialized code here and/or call the base class
if (pMsg->message==WM_KEYDOWN)//键盘按下,!= 没按下就相反
{
//处理函数
}

return CDialog::PreTranslateMessage(pMsg);
}
------解决方案--------------------
先在类向导里加:PreTranslateMessage
pMsg->message==WM_KeyDown就行了
------解决方案--------------------
WM_KEYDOWN 和 WM_SYSKEYDOWN都要判断
------解决方案--------------------
onMouseMove?那就在onMouseDown里设一个标志位改变其值,然后在onMouseMove里判别就OK了吧
------解决方案--------------------
那就要onMouseMove中判断WM_KEYDOWN 和 WM_SYSKEYDOWN
不过如果你的mouse不动得时候,就不会进行判断
------解决方案--------------------
C/C++ code

SHORT GetKeyState(int nVirtKey);