How to set Shortcutkeys for Toolbar buttons?
-
Give me some code sample. Thanks ALL THINGS ARE POSSIBLE UNTIL THEY ARE PROVED IMPOSSIBLE-AND EVEN THE IMPOSSIBLE MAY ONLY BE SO,AS OF NOW
-
Give me some code sample. Thanks ALL THINGS ARE POSSIBLE UNTIL THEY ARE PROVED IMPOSSIBLE-AND EVEN THE IMPOSSIBLE MAY ONLY BE SO,AS OF NOW
Hi, Create the accelerators for the toolbar buttons using the resource editor... Vikram Kashyap "You will never fail until you stop trying"
-
Hi, Create the accelerators for the toolbar buttons using the resource editor... Vikram Kashyap "You will never fail until you stop trying"
Hey thnaks for ur reply.i tried this. but it is not working. after adding accelerator key.should i write some code to catch that message. ALL THINGS ARE POSSIBLE UNTIL THEY ARE PROVED IMPOSSIBLE-AND EVEN THE IMPOSSIBLE MAY ONLY BE SO,AS OF NOW
-
Hey thnaks for ur reply.i tried this. but it is not working. after adding accelerator key.should i write some code to catch that message. ALL THINGS ARE POSSIBLE UNTIL THEY ARE PROVED IMPOSSIBLE-AND EVEN THE IMPOSSIBLE MAY ONLY BE SO,AS OF NOW
Hi, Yes, you need to load that Accelerator table. HACCEL gAccel; //Declare in header file //Add this code to the OnInItDialog of your dialog class gAccel = LoadAccelerators(AfxGetApp()->m_hInstance,MAKEINTRESOURCE(IDR_MYACCEL)); //Add this code to PreTranslateMessage if(TranslateAccelerator(AfxGetMainWnd()->m_hWnd,gAccel,pMsg)) return FALSE; This should work.... Thanx and Bye Vikram Kashyap "You will never fail until you stop trying"