Click here to Skip to main content
15,895,538 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionKazaa searchresult ctrl?? Pin
Stefan Dahlin4-Oct-03 14:04
Stefan Dahlin4-Oct-03 14:04 
GeneralNetwork interface Pin
Florin Ochiana4-Oct-03 12:17
Florin Ochiana4-Oct-03 12:17 
GeneralRe: Network interface Pin
Max Santos5-Oct-03 5:12
Max Santos5-Oct-03 5:12 
GeneralPRINTING -VC++ Pin
radha vijay4-Oct-03 9:11
radha vijay4-Oct-03 9:11 
GeneralRe: PRINTING -VC++ Pin
LunaticFringe4-Oct-03 22:26
LunaticFringe4-Oct-03 22:26 
GeneralRe: PRINTING -VC++ Pin
radha vijay6-Oct-03 14:18
radha vijay6-Oct-03 14:18 
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 

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.