2009/03/04

Num Lock, Caps Lock, Scroll Lock 상태 알아내기

    bool bScrollLock = (bool)( ::GetKeyState(VK_SCROLL)  > 0 );
bool bNumLock = (bool)( ::GetKeyState(VK_NUMLOCK) > 0 );
bool bCapsLock = (bool)( ::GetKeyState(VK_CAPITAL) > 0 );

Original Post : http://neodreamer-dev.tistory.com/263

No comments :

Post a Comment