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

C / C++ / MFC

 
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 
AnswerRe: How to reload a modified CDocument Pin
Alvaro Mendez4-Mar-03 9:08
Alvaro Mendez4-Mar-03 9:08 
I took a look at your problem, and it seems like there's no simple way to do this. You need to derive from the DocManager class being used -- it's probably CFileDialogDocManager but look in your InitInstanstance for the exact name. Then you can override the OpenDocumentFile and pretty much copy the whole thing from the base class, except the part that checks the file's name. Well, you actually do want to check the file name so you can close the existing document.

It's not bad, just not very pretty. BTW, don't forget to change InitInstance.

Regards,
Alvaro


There are no stupid questions, but there are a lot of inquisitive idiots. -- despair.com
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 
GeneralRe: Welcoming window Pin
ColinDavies4-Mar-03 14:20
ColinDavies4-Mar-03 14:20 

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.