Click here to Skip to main content
15,888,239 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
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 
GeneralRe: customize key bindings / accelerators Pin
ehh14-Jun-05 6:30
ehh14-Jun-05 6:30 
I thought what I'd do is to keep a copy of the latest accelerator table in the application object, and override the CDocument virtual GetDefaultAccelerator() method, returning the application's accelerator table, which will then be used by the CFrameWnd instead of the default. It's a bit of a hack, since as you noted, there's no point in storing an accelerator table in each document, but it allows easy reversion to the default (return NULL in the overridden GetDefaultAccelerator() method), and simplifies the management of the user-modified accelerator. I'll give it a try with a simple Hello World application....

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 
GeneralRe: Very basic question Pin
David Crow13-Jun-05 8:30
David Crow13-Jun-05 8:30 

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.