Click here to Skip to main content
16,015,827 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Overriding Tab Key Pin
Brian Shifrin4-Mar-03 5:19
Brian Shifrin4-Mar-03 5:19 
GeneralRe: Overriding Tab Key Pin
brianwelsch4-Mar-03 5:35
brianwelsch4-Mar-03 5:35 
GeneralRe: Overriding Tab Key Pin
Brian Shifrin4-Mar-03 7:15
Brian Shifrin4-Mar-03 7:15 
GeneralRe: Overriding Tab Key Pin
brianwelsch4-Mar-03 7:23
brianwelsch4-Mar-03 7:23 
GeneralRe: Overriding Tab Key Pin
Chris Richardson4-Mar-03 8:06
Chris Richardson4-Mar-03 8:06 
GeneralRe: Overriding Tab Key - DONE Pin
brianwelsch4-Mar-03 8:27
brianwelsch4-Mar-03 8:27 
GeneralRe: Overriding Tab Key - DONE Pin
Chris Richardson4-Mar-03 8:41
Chris Richardson4-Mar-03 8:41 
QuestionHow to reload a modified CDocument Pin
luedi4-Mar-03 4:57
luedi4-Mar-03 4:57 
Hi,

in a SDI application I want to reload a document that was modified with CDosument::SetModified (TRUE) by clicking on the document in the MRU list. But the framework will recognize the document as already beeing loaded and only activates it as current active document again. There seems to be also no simple method to override to allow such a behavoir.

Two functions are involved in this:
CDocManager::OpenDocumentFile and CDocTemplate::MatchDocType

Both are virtual but both are also non trivial.

This function does not belong into the CDocTemplate, since I would like to have it for all Documents in a MDI Application. But this function isn't trivial at all.

Finally I have CWinApp::OnOpenRecentFile. But this isn't a real option also.

Is there any simple way to do this?

Thanks
Dirk
AnswerRe: How to reload a modified CDocument Pin
Alvaro Mendez4-Mar-03 9:08
Alvaro Mendez4-Mar-03 9:08 
GeneralRe: How to reload a modified CDocument Pin
luedi4-Mar-03 12:08
luedi4-Mar-03 12:08 
GeneralSTL set question Pin
ns4-Mar-03 4:38
ns4-Mar-03 4:38 
GeneralRe: STL set question Pin
Joaquín M López Muñoz4-Mar-03 5:18
Joaquín M López Muñoz4-Mar-03 5:18 
GeneralRe: STL set question Pin
ns4-Mar-03 5:31
ns4-Mar-03 5:31 
GeneralRe: STL set question Pin
Joaquín M López Muñoz4-Mar-03 6:30
Joaquín M López Muñoz4-Mar-03 6:30 
GeneralRe: STL set question Pin
ns4-Mar-03 7:14
ns4-Mar-03 7:14 
GeneralRe: STL set question Pin
ns4-Mar-03 7:40
ns4-Mar-03 7:40 
GeneralRe: STL set question Pin
Chris Losinger4-Mar-03 14:44
professionalChris Losinger4-Mar-03 14:44 
Generalyup Pin
ns5-Mar-03 4:44
ns5-Mar-03 4:44 
GeneralCRichEditCtrl - Changing of colors of selected text Pin
Member 2886124-Mar-03 4:26
Member 2886124-Mar-03 4:26 
GeneralRe: CRichEditCtrl - Changing of colors of selected text Pin
Big Art4-Mar-03 7:07
Big Art4-Mar-03 7:07 
GeneralPop-up menu Pin
Cedric Moonen4-Mar-03 4:06
Cedric Moonen4-Mar-03 4:06 
Generalcreate a view in dialog Pin
Ivan Polak4-Mar-03 3:58
Ivan Polak4-Mar-03 3:58 
GeneralWelcoming window Pin
RalfPeter4-Mar-03 3:50
RalfPeter4-Mar-03 3:50 
GeneralRe: Welcoming window Pin
Anonymous4-Mar-03 4:57
Anonymous4-Mar-03 4:57 
GeneralRe: Welcoming window Pin
Joan M4-Mar-03 6:27
professionalJoan M4-Mar-03 6:27 

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.