Click here to Skip to main content
15,898,374 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Differentiate Windows Pin
David Crow1-Aug-05 10:28
David Crow1-Aug-05 10:28 
GeneralRe: Differentiate Windows Pin
Ista1-Aug-05 10:50
Ista1-Aug-05 10:50 
GeneralRe: Differentiate Windows Pin
WoutL1-Aug-05 10:55
WoutL1-Aug-05 10:55 
GeneralRe: Differentiate Windows Pin
David Crow1-Aug-05 11:17
David Crow1-Aug-05 11:17 
GeneralRe: Differentiate Windows Pin
Ista1-Aug-05 11:50
Ista1-Aug-05 11:50 
GeneralRe: Differentiate Windows Pin
Ista1-Aug-05 13:41
Ista1-Aug-05 13:41 
GeneralRe: Differentiate Windows Pin
David Crow2-Aug-05 3:44
David Crow2-Aug-05 3:44 
GeneralCDocument::m_bAutoDelete question ( undocumented ) Pin
Maximilien1-Aug-05 8:54
Maximilien1-Aug-05 8:54 
As far as I understand, the CDocument::m_bAutoDelete variable will tell MFC that it should not delete the document when closing the last view attached to it when set to FALSE.

I tried this with a simplistic MDI MFC application, setting m_bAutoDelete to FALSE in the CDocument constructor; but when I close the last view ( WM_CLOSE on the ChildFrame ), it closes the view ( and frame ), but will replace the current menus with the ones for when there is no document active.

I wanted to have the document loaded with all the views closed, and still have the "Window" ( with the new window command ) menu available.

I want to make sure the user close the document with a "Close" document command, not by closing all the views.

Any Ideas ? I google for this, but nothing really interresing came up.

Thanks.

Max.


Maximilien Lincourt
Your Head A Splode - Strong Bad
GeneralRe: CDocument::m_bAutoDelete question ( undocumented ) Pin
Tom Archer1-Aug-05 10:58
Tom Archer1-Aug-05 10:58 
GeneralRe: CDocument::m_bAutoDelete question ( undocumented ) Pin
Tom Archer1-Aug-05 11:02
Tom Archer1-Aug-05 11:02 
GeneralRe: CDocument::m_bAutoDelete question ( undocumented ) Pin
Maximilien1-Aug-05 12:49
Maximilien1-Aug-05 12:49 
GeneralRe: CDocument::m_bAutoDelete question ( undocumented ) Pin
Jose Lamas Rios1-Aug-05 17:21
Jose Lamas Rios1-Aug-05 17:21 
GeneralWTL Text Printing Pin
HumanOsc1-Aug-05 8:04
HumanOsc1-Aug-05 8:04 
GeneralRe: WTL Text Printing Pin
HumanOsc1-Aug-05 22:15
HumanOsc1-Aug-05 22:15 
GeneralMFC CFormView and CDoc Pin
Dosin1-Aug-05 6:58
Dosin1-Aug-05 6:58 
GeneralRe: MFC CFormView and CDoc Pin
Chris Losinger1-Aug-05 7:16
professionalChris Losinger1-Aug-05 7:16 
GeneralRe: MFC CFormView and CDoc Pin
Dosin1-Aug-05 7:37
Dosin1-Aug-05 7:37 
GeneralRe: MFC CFormView and CDoc Pin
Chris Losinger1-Aug-05 7:43
professionalChris Losinger1-Aug-05 7:43 
GeneralRe: MFC CFormView and CDoc Pin
Alex_Y1-Aug-05 7:44
Alex_Y1-Aug-05 7:44 
GeneralRe: MFC CFormView and CDoc Pin
Alex_Y1-Aug-05 7:46
Alex_Y1-Aug-05 7:46 
GeneralRe: MFC CFormView and CDoc Pin
Dosin1-Aug-05 8:25
Dosin1-Aug-05 8:25 
GeneralClass wizard Pin
BicycleTheif1-Aug-05 5:40
BicycleTheif1-Aug-05 5:40 
GeneralRe: Class wizard Pin
RChin1-Aug-05 5:46
RChin1-Aug-05 5:46 
GeneralRe: Class wizard Pin
BicycleTheif1-Aug-05 5:49
BicycleTheif1-Aug-05 5:49 
GeneralRe: Class wizard Pin
RChin1-Aug-05 5:53
RChin1-Aug-05 5:53 

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.