Click here to Skip to main content
15,902,032 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralClosing initial Document in MDI Pin
24-Aug-01 6:16
suss24-Aug-01 6:16 
GeneralRe: Closing initial Document in MDI Pin
Tim Deveaux24-Aug-01 6:39
Tim Deveaux24-Aug-01 6:39 
GeneralRe: Closing initial Document in MDI Pin
Dave Glick24-Aug-01 8:47
Dave Glick24-Aug-01 8:47 
GeneralRe: Closing initial Document in MDI Pin
Jerry Wang27-Sep-01 9:56
Jerry Wang27-Sep-01 9:56 
GeneralRe: Closing initial Document in MDI Pin
J Patel27-Sep-01 10:12
J Patel27-Sep-01 10:12 
GeneralRe: Closing initial Document in MDI Pin
Jerry Wang27-Sep-01 10:30
Jerry Wang27-Sep-01 10:30 
GeneralRe: Closing initial Document in MDI Pin
Dave Glick28-Sep-01 2:31
Dave Glick28-Sep-01 2:31 
GeneralRe: Changing Documents in SDI app Pin
Ben Burnett24-Aug-01 15:55
Ben Burnett24-Aug-01 15:55 
try replacing your calls with;

SaveModified();
AfxGetApp()->OpenDocumentFile ( _T ( "C:\\your_document.ext" ) );


BTW: OnOpenDocument() should not be called directly, it is used by the framework in response to the File Open command... the framework does allot of initialization before and after it calls this.

Ben Burnett

---------
On the topic of code with no error handling -- It's not poor coding, it's "optimistic" Wink | ;)
GeneralFind controls on Window Pin
24-Aug-01 5:02
suss24-Aug-01 5:02 
GeneralRe: Find controls on Window Pin
Matt Gullett24-Aug-01 5:06
Matt Gullett24-Aug-01 5:06 
GeneralRe: Find controls on Window Pin
24-Aug-01 5:52
suss24-Aug-01 5:52 
GeneralRe: Find controls on Window Pin
Matt Gullett24-Aug-01 6:05
Matt Gullett24-Aug-01 6:05 
GeneralRe: Find controls on Window Pin
24-Aug-01 6:07
suss24-Aug-01 6:07 
GeneralRe: Find controls on Window Pin
24-Aug-01 6:17
suss24-Aug-01 6:17 
GeneralDeleting a dynamically allocated 2d array Pin
Josh Knox24-Aug-01 4:11
Josh Knox24-Aug-01 4:11 
GeneralRe: Deleting a dynamically allocated 2d array Pin
Tim Deveaux24-Aug-01 6:00
Tim Deveaux24-Aug-01 6:00 
GeneralRe: Deleting a dynamically allocated 2d array (part II) Pin
Tim Deveaux24-Aug-01 8:39
Tim Deveaux24-Aug-01 8:39 
GeneralBorland C++ Builder : DLL Load Error Pin
AaroC35724-Aug-01 4:04
AaroC35724-Aug-01 4:04 
QuestionHow to remove the maximize button... Pin
Maer72724-Aug-01 3:28
Maer72724-Aug-01 3:28 
AnswerRe: How to remove the maximize button... Pin
Zoltan Csizmadia24-Aug-01 4:14
Zoltan Csizmadia24-Aug-01 4:14 
GeneralRe: How to remove the maximize button... Pin
Maer72724-Aug-01 22:21
Maer72724-Aug-01 22:21 
QuestionHow can I get the KB articles? Pin
Maer72724-Aug-01 3:27
Maer72724-Aug-01 3:27 
AnswerRe: How can I get the KB articles? Pin
Josh Knox24-Aug-01 4:16
Josh Knox24-Aug-01 4:16 
GeneralRe: How can I get the KB articles? Pin
Maer72724-Aug-01 22:33
Maer72724-Aug-01 22:33 
GeneralBitmap dialog drawing problem Pin
24-Aug-01 3:14
suss24-Aug-01 3:14 

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.