|
-
June 19th, 2004, 01:07 AM
#1
PreTranslateMessage(ALT + TAB key)
in my PreTranslateMessage function i have the following code to detect if ALT & TAB key r down
if(pMsg->message == WM_KEYDOWN && pMsg->wParam == VK_TAB && pMsg->wParam == VK_MENU)
{
...............
.........
return -1;
}
but this does,nt work for alt key
what's wrong ???
in msdn there's VK_ALT but this gives undeclared indetifier
mamathaks
-
June 19th, 2004, 01:13 AM
#2
One solution is GetKeyState().
Kuphryn
-
June 19th, 2004, 06:34 AM
#3
Well, this seem to always evaluate to false....
Code:
pMsg->wParam == VK_TAB && pMsg->wParam == VK_MENU
Amit
Last edited by Amit Sebiz; June 19th, 2004 at 07:12 AM.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|