Click here to Skip to main content
14,969,930 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: small sample of where problem ocurres. Pin
John R. Shaw7-Sep-07 23:24
MemberJohn R. Shaw7-Sep-07 23:24 
GeneralRe: small sample of where problem ocurres. Pin
Leslie Sanford7-Sep-07 23:42
MemberLeslie Sanford7-Sep-07 23:42 
GeneralRe: Another qestion on the same subject. Pin
gizmokaka8-Sep-07 0:20
Membergizmokaka8-Sep-07 0:20 
GeneralRe: small sample of where problem ocurres. Pin
Russell'7-Sep-07 23:33
MemberRussell'7-Sep-07 23:33 
QuestionClosing a view Pin
bob169727-Sep-07 11:08
Memberbob169727-Sep-07 11:08 
AnswerRe: Closing a view Pin
Russell'7-Sep-07 23:02
MemberRussell'7-Sep-07 23:02 
GeneralRe: Closing a view Pin
bob169728-Sep-07 4:44
Memberbob169728-Sep-07 4:44 
GeneralRe: Closing a view Pin
Mark Salsbery8-Sep-07 7:04
MemberMark Salsbery8-Sep-07 7:04 
In addition to Russell's reply -

Typically you'd use DestroyWindow() to destroy a window but with MFC doc/view, that
would bypass the prompt to save an unsaved document and delete the document if its
autodelete flag is set.

I disagree with Russell's statement that the WM_CLOSE will be sent to the children, but
it's generally not an issue anyway since only frame windows do something useful with the
message. 

I always figured the reason it's not documented is MFC just assumes only the user will
close a window.  Just one of the many irritating things about the doc/view architecture.

Cheers,
Mark




Mark Salsbery
Microsoft MVP - Visual C++

Java | [Coffee]

GeneralRe: Closing a view Pin
bob169728-Sep-07 9:14
Memberbob169728-Sep-07 9:14 
GeneralRe: Closing a view Pin
Mark Salsbery8-Sep-07 10:51
MemberMark Salsbery8-Sep-07 10:51 
AnswerRe: Closing a view Pin
Nelek12-Sep-07 0:02
protectorNelek12-Sep-07 0:02 
Questiontree graph Pin
Chris Losinger7-Sep-07 10:48
professionalChris Losinger7-Sep-07 10:48 
AnswerRe: tree graph Pin
El Corazon7-Sep-07 11:25
MemberEl Corazon7-Sep-07 11:25 
AnswerRe: tree graph Pin
El Corazon7-Sep-07 11:32
MemberEl Corazon7-Sep-07 11:32 
QuestionMDI multiple view types - Window List Pin
bob169727-Sep-07 10:12
Memberbob169727-Sep-07 10:12 
AnswerRe: MDI multiple view types - Window List Pin
bob169727-Sep-07 14:15
Memberbob169727-Sep-07 14:15 
GeneralRe: MDI multiple view types - Window List Pin
bob169727-Sep-07 14:21
Memberbob169727-Sep-07 14:21 
AnswerRe: MDI multiple view types - Window List Pin
Nelek12-Sep-07 0:08
protectorNelek12-Sep-07 0:08 
QuestionHow to prevent library/software cracking Pin
Hirakawa7-Sep-07 9:53
MemberHirakawa7-Sep-07 9:53 
AnswerRe: How to prevent library/software cracking Pin
David Crow7-Sep-07 10:16
MemberDavid Crow7-Sep-07 10:16 
GeneralRe: How to prevent library/software cracking Pin
Hirakawa7-Sep-07 21:08
MemberHirakawa7-Sep-07 21:08 
QuestionUsing a resource from an ATL COM MFC Component Pin
cmacgowan7-Sep-07 9:45
Membercmacgowan7-Sep-07 9:45 
AnswerRe: Using a resource from an ATL COM MFC Component Pin
cmacgowan7-Sep-07 11:45
Membercmacgowan7-Sep-07 11:45 
QuestionHow to find Certificate Trust List by "Identifier" Pin
Joseph.Lightfoot7-Sep-07 6:18
MemberJoseph.Lightfoot7-Sep-07 6:18 
AnswerRe: How to find Certificate Trust List by "Identifier" Pin
led mike7-Sep-07 7:34
Memberled mike7-Sep-07 7:34 

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.