如何判断CapsLock键是否按下时间:2023-03-09 15:03:56 SHORT cap_state = ::GetKeyState(VK_CAPITAL); char str[10]; sprintf(str, "%d", cap_state); AfxMessageBox( CString(str) , MB_OK ); 会弹出0或者1