Click here to Skip to main content
15,920,030 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralKey accelerators Pin
BoudewijnEctor4-Oct-03 5:53
BoudewijnEctor4-Oct-03 5:53 
GeneralRe: Key accelerators Pin
Mike Dimmick4-Oct-03 7:48
Mike Dimmick4-Oct-03 7:48 
If you're using MFC, and the window in question is a frame window (derived from CFrameWnd), it already has support for accelerators. To make the frame window load the accelerator table at the same time as the menu and other resources, give it the same resource ID as the menu and use LoadFrame to create the frame window.

If you want an alternate set of accelerators, use LoadAccelTable.

For a non-CFrameWnd window, you'll need to call LoadAccelerators to load the table, and insert a call to TranslateAccelerator in an override of PreTranslateMessage, returning TRUE if TranslateAccelerator does.

I don't know enough WTL to offer a suggestion.

If you're using the raw Win32 API, insert a call to TranslateAccelerator before your call to TranslateMessage in your message loop.
GeneralTimers in MFC Pin
BoudewijnEctor4-Oct-03 5:41
BoudewijnEctor4-Oct-03 5:41 
GeneralRe: Timers in MFC Pin
NewHSKid4-Oct-03 5:46
NewHSKid4-Oct-03 5:46 
GeneralRe: Timers in MFC Pin
Mike Dimmick4-Oct-03 7:50
Mike Dimmick4-Oct-03 7:50 
GeneralRe: Timers in MFC Pin
Michael Dunn4-Oct-03 6:28
sitebuilderMichael Dunn4-Oct-03 6:28 
GeneralRe: Timers in MFC Pin
Ted Ferenc4-Oct-03 7:41
Ted Ferenc4-Oct-03 7:41 
GeneralRe: Timers in MFC Pin
BoudewijnEctor4-Oct-03 9:15
BoudewijnEctor4-Oct-03 9:15 
GeneralChecking to see if filename entered Pin
NewHSKid4-Oct-03 5:33
NewHSKid4-Oct-03 5:33 
GeneralRe: Checking to see if filename entered Pin
Terry O'Nolley4-Oct-03 6:26
Terry O'Nolley4-Oct-03 6:26 
GeneralInformation extraction Pin
Member 6221644-Oct-03 5:15
Member 6221644-Oct-03 5:15 
GeneralRe: Information extraction Pin
Neville Franks4-Oct-03 11:48
Neville Franks4-Oct-03 11:48 
GeneralType Variable Pin
Aidman4-Oct-03 5:09
Aidman4-Oct-03 5:09 
GeneralRe: Type Variable Pin
includeh104-Oct-03 5:22
includeh104-Oct-03 5:22 
GeneralRe: Type Variable Pin
Ian Darling4-Oct-03 5:27
Ian Darling4-Oct-03 5:27 
GeneralRe: Type Variable Pin
Ian Darling4-Oct-03 5:30
Ian Darling4-Oct-03 5:30 
GeneralRe: Type Variable Pin
Neville Franks4-Oct-03 11:53
Neville Franks4-Oct-03 11:53 
GeneralRe: Type Variable Pin
Michael Dunn4-Oct-03 6:42
sitebuilderMichael Dunn4-Oct-03 6:42 
GeneralRe: Type Variable Pin
Ian Darling4-Oct-03 7:57
Ian Darling4-Oct-03 7:57 
GeneralRe: Type Variable Pin
Michael Dunn4-Oct-03 8:05
sitebuilderMichael Dunn4-Oct-03 8:05 
GeneralRe: Type Variable Pin
Ian Darling4-Oct-03 8:12
Ian Darling4-Oct-03 8:12 
GeneralRe: Type Variable Pin
Michael Dunn4-Oct-03 8:21
sitebuilderMichael Dunn4-Oct-03 8:21 
GeneralRe: Type Variable Pin
Aidman4-Oct-03 8:29
Aidman4-Oct-03 8:29 
GeneralRe: Type Variable Pin
Neville Franks4-Oct-03 11:51
Neville Franks4-Oct-03 11:51 
QuestionHow to implement ASPELL with MFC ??? Pin
tankhoasp3-Oct-03 20:10
tankhoasp3-Oct-03 20:10 

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.