KeyDown
-
How to detect which key has been pressed along with ctrl key? Thankyou
-
How to detect which key has been pressed along with ctrl key? Thankyou
Use
GetKeyState
to find out state of control key...BOOL SomeDialog::PreTranslateMessage(MSG* pMsg)
{
if( pMsg->message == WM_KEYDOWN &&
pMsg->wParam == VK_TAB &&
( GetKeyState( VK_CONTROL ) & 0x8000 )
)
{
HandleCtrlTab();
return TRUE;
}
return CDialog::PreTranslateMessage(pMsg);
}
Nibu thomas A Developer Code must be written to be read, not by the compiler, but by another human being. http:\\nibuthomas.wordpress.com
-
Use
GetKeyState
to find out state of control key...BOOL SomeDialog::PreTranslateMessage(MSG* pMsg)
{
if( pMsg->message == WM_KEYDOWN &&
pMsg->wParam == VK_TAB &&
( GetKeyState( VK_CONTROL ) & 0x8000 )
)
{
HandleCtrlTab();
return TRUE;
}
return CDialog::PreTranslateMessage(pMsg);
}
Nibu thomas A Developer Code must be written to be read, not by the compiler, but by another human being. http:\\nibuthomas.wordpress.com
Thankyou very much...
-
How to detect which key has been pressed along with ctrl key? Thankyou