Click here to Skip to main content
15,917,618 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Hook on a HWND Pin
Randor 7-Dec-08 20:34
professional Randor 7-Dec-08 20:34 
GeneralRe: Hook on a HWND Pin
Tony Pottier7-Dec-08 20:45
Tony Pottier7-Dec-08 20:45 
AnswerRe: Hook on a HWND Pin
Randor 7-Dec-08 19:49
professional Randor 7-Dec-08 19:49 
GeneralRe: Hook on a HWND Pin
Tony Pottier7-Dec-08 20:16
Tony Pottier7-Dec-08 20:16 
QuestionAccess system Folder Pin
john56327-Dec-08 18:59
john56327-Dec-08 18:59 
AnswerRe: Access system Folder Pin
enhzflep7-Dec-08 19:20
enhzflep7-Dec-08 19:20 
GeneralRe: Access system Folder Pin
john56328-Dec-08 0:09
john56328-Dec-08 0:09 
QuestionKeyboard Handlers Pin
prithaa7-Dec-08 18:19
prithaa7-Dec-08 18:19 
Hello,

I am having the following routine which handles my menu options and directs them to the appropriate functions.Now if I want to divert these functions through keyboard handlers that ALT F,ALT D etc.
How should I go about?

BOOL CMainFrame::OnCommand(WPARAM wParam, LPARAM lParam)
{
if(HIWORD(wParam) == 0)
{
switch(LOWORD(wParam)) //LOWORD of wParam identifies the control
{
//ids from menu options
case MENUINVENTORY :
{OnInventory();break;}
case MENUJOB :
{OnJob();break;}
case MENUCAPCONTRACT :
{OnCapContract();break;}
}
}

Thanks,
Prithaa
GeneralRe: Keyboard Handlers Pin
Malli_S7-Dec-08 20:02
Malli_S7-Dec-08 20:02 
QuestionStatic font Pin
NewVC++7-Dec-08 18:08
NewVC++7-Dec-08 18:08 
AnswerRe: Static font Pin
Hamid_RT7-Dec-08 18:21
Hamid_RT7-Dec-08 18:21 
GeneralRe: Static font Pin
NewVC++7-Dec-08 18:23
NewVC++7-Dec-08 18:23 
GeneralRe: Static font Pin
Hamid_RT7-Dec-08 18:30
Hamid_RT7-Dec-08 18:30 
GeneralRe: Static font Pin
NewVC++7-Dec-08 18:40
NewVC++7-Dec-08 18:40 
GeneralYou're welcome Pin
Hamid_RT7-Dec-08 18:52
Hamid_RT7-Dec-08 18:52 
GeneralRe: You're welcome Pin
NewVC++7-Dec-08 18:59
NewVC++7-Dec-08 18:59 
GeneralRe: You're welcome Pin
Randor 7-Dec-08 19:35
professional Randor 7-Dec-08 19:35 
GeneralRe: You're welcome Pin
Hamid_RT7-Dec-08 20:54
Hamid_RT7-Dec-08 20:54 
GeneralRe: You're welcome Pin
NewVC++7-Dec-08 21:01
NewVC++7-Dec-08 21:01 
GeneralRe: You're welcome Pin
Hamid_RT7-Dec-08 21:28
Hamid_RT7-Dec-08 21:28 
QuestionHow to ownerdraw a scrollbar inside a listbox? Pin
KellyR7-Dec-08 17:54
KellyR7-Dec-08 17:54 
AnswerRe: How to ownerdraw a scrollbar inside a listbox? Pin
Hamid_RT7-Dec-08 18:24
Hamid_RT7-Dec-08 18:24 
QuestionRe: How to ownerdraw a scrollbar inside a listbox? Pin
KellyR7-Dec-08 18:28
KellyR7-Dec-08 18:28 
AnswerRe: How to ownerdraw a scrollbar inside a listbox? Pin
Nishad S7-Dec-08 22:04
Nishad S7-Dec-08 22:04 
GeneralRe: How to ownerdraw a scrollbar inside a listbox? Pin
KellyR8-Dec-08 16:00
KellyR8-Dec-08 16:00 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.