Click here to Skip to main content
15,906,624 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Adding Sound to AVI Files Pin
Identity Undisclosed13-Jun-05 18:09
Identity Undisclosed13-Jun-05 18:09 
GeneralRe: Adding Sound to AVI Files Pin
normanS15-Jun-05 3:48
normanS15-Jun-05 3:48 
GeneralRe: Adding Sound to AVI Files Pin
normanS13-Jun-05 16:18
normanS13-Jun-05 16:18 
GeneralRe: Adding Sound to AVI Files Pin
normanS13-Jun-05 20:54
normanS13-Jun-05 20:54 
Generalcustomize key bindings / accelerators Pin
ehh13-Jun-05 8:10
ehh13-Jun-05 8:10 
GeneralRe: customize key bindings / accelerators Pin
Blake Miller13-Jun-05 8:50
Blake Miller13-Jun-05 8:50 
GeneralRe: customize key bindings / accelerators Pin
ehh14-Jun-05 3:55
ehh14-Jun-05 3:55 
GeneralRe: customize key bindings / accelerators Pin
Blake Miller14-Jun-05 5:01
Blake Miller14-Jun-05 5:01 
If you only want your accelerators to apply to the frame window, I am not sure you need to override for the document, since the only place the document's GetDefaultAccelerator() was called was from the same function in the mainframe. The document's default implementation just returns NULL anyways.

It would also have been ideal if the CFrameWnd::LoadAccelerator was a virtual function, but I never claimed the designers of MFC were particularly farsighted... Oh well Sigh | :sigh: As a result, you are going to have to load your own and keep track in the GetDefaultAccelerator() you override, and possibly destroy the one created by the default implementation of LoadAccelerator stored in CFrameWnd.m_hAccelTable member variable.

What you could do, is try to load yours, and if it is missing, then return the default handle.
This way, you could define a default set in the resource, and let the user override that with his own settings. A 'revert' would just replace his modified settings with a set from the original copy from the resources.

GeneralRe: customize key bindings / accelerators Pin
ehh14-Jun-05 6:30
ehh14-Jun-05 6:30 
GeneralActiveX Ctrl hanging in MFC code: _AfxFindNextMnem Pin
Ian Bowler13-Jun-05 8:09
Ian Bowler13-Jun-05 8:09 
GeneralExpanding Trees Pin
victorsk13-Jun-05 7:56
victorsk13-Jun-05 7:56 
Generaltoupper macro key Pin
Stober13-Jun-05 6:56
Stober13-Jun-05 6:56 
GeneralRe: toupper macro key Pin
Chris Losinger13-Jun-05 7:06
professionalChris Losinger13-Jun-05 7:06 
GeneralRe: toupper macro key Pin
Stober13-Jun-05 7:24
Stober13-Jun-05 7:24 
GeneralRe: toupper macro key Pin
Chris Losinger13-Jun-05 7:26
professionalChris Losinger13-Jun-05 7:26 
GeneralRe: toupper macro key Pin
Stober13-Jun-05 8:57
Stober13-Jun-05 8:57 
GeneralVery basic question Pin
Opa Knack13-Jun-05 6:49
Opa Knack13-Jun-05 6:49 
GeneralRe: Very basic question Pin
Maximilien13-Jun-05 7:13
Maximilien13-Jun-05 7:13 
GeneralRe: Very basic question Pin
Budric B.13-Jun-05 7:16
Budric B.13-Jun-05 7:16 
GeneralRe: Very basic question Pin
Opa Knack13-Jun-05 7:28
Opa Knack13-Jun-05 7:28 
GeneralRe: Very basic question Pin
Cedric Moonen13-Jun-05 7:37
Cedric Moonen13-Jun-05 7:37 
GeneralRe: Very basic question Pin
Opa Knack13-Jun-05 7:45
Opa Knack13-Jun-05 7:45 
GeneralRe: Very basic question Pin
Cedric Moonen13-Jun-05 8:03
Cedric Moonen13-Jun-05 8:03 
GeneralRe: Very basic question Pin
David Crow13-Jun-05 7:00
David Crow13-Jun-05 7:00 
GeneralRe: Very basic question Pin
Opa Knack13-Jun-05 10:04
Opa Knack13-Jun-05 10:04 

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.