Click here to Skip to main content
16,004,977 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: perform action on close [X] button Pin
elephantstar28-Jun-04 14:51
elephantstar28-Jun-04 14:51 
GeneralRe: perform action on close [X] button Pin
Neville Franks28-Jun-04 14:57
Neville Franks28-Jun-04 14:57 
GeneralRe: perform action on close [X] button Pin
elephantstar29-Jun-04 8:23
elephantstar29-Jun-04 8:23 
GeneralRe: perform action on close [X] button Pin
Neville Franks29-Jun-04 10:38
Neville Franks29-Jun-04 10:38 
GeneralRe: perform action on close [X] button Pin
elephantstar29-Jun-04 13:01
elephantstar29-Jun-04 13:01 
GeneralRe: perform action on close [X] button Pin
Neville Franks29-Jun-04 13:43
Neville Franks29-Jun-04 13:43 
GeneralRe: perform action on close [X] button Pin
*Dreamz28-Jun-04 18:33
*Dreamz28-Jun-04 18:33 
GeneralRe: perform action on close [X] button Pin
elephantstar29-Jun-04 9:01
elephantstar29-Jun-04 9:01 
I tried that already when you had first suggested it but it doesn't work. I had the OnSysCommand() in both the CMainFrame and the document view class but it doesn't seem to call it.

By inserting CanCloseFrame() in the document class, the document view does call that function to determine if the view should be closed. My problem now lies in the many views that are attached to that document. How can I find out what the calling view was and from there, call its OnClose function that will perform some type of save before closing it.
GeneralRe: perform action on close [X] button Pin
Neville Franks29-Jun-04 13:37
Neville Franks29-Jun-04 13:37 
GeneralRe: perform action on close [X] button Pin
elephantstar29-Jun-04 14:56
elephantstar29-Jun-04 14:56 
GeneralRe: perform action on close [X] button Pin
Neville Franks29-Jun-04 15:06
Neville Franks29-Jun-04 15:06 
GeneralRe: perform action on close [X] button Pin
David Crow1-Jul-04 2:21
David Crow1-Jul-04 2:21 
GeneralRe: perform action on close [X] button Pin
elephantstar1-Jul-04 5:55
elephantstar1-Jul-04 5:55 
GeneralRe: perform action on close [X] button Pin
David Crow1-Jul-04 8:05
David Crow1-Jul-04 8:05 
GeneralHELP ME IN THIS PROBLEM Pin
Abo_Osama28-Jun-04 5:44
Abo_Osama28-Jun-04 5:44 
GeneralProblems with Com-Addin Pin
Slowhand0128-Jun-04 5:29
Slowhand0128-Jun-04 5:29 
GeneralRe: Problems with Com-Addin Pin
Anthony_Yio28-Jun-04 17:56
Anthony_Yio28-Jun-04 17:56 
Generaltried to hide a window but the menu bar and tool bar is still shown Pin
Zhang Ming Htmlab28-Jun-04 5:23
Zhang Ming Htmlab28-Jun-04 5:23 
GeneralRe: tried to hide a window but the menu bar and tool bar is still shown Pin
Johan Rosengren28-Jun-04 9:40
Johan Rosengren28-Jun-04 9:40 
GeneralRe: tried to hide a window but the menu bar and tool bar is still shown Pin
Zhang Ming Htmlab29-Jun-04 6:02
Zhang Ming Htmlab29-Jun-04 6:02 
GeneralLoadLibrary Fails :( Pin
Chris Ulliott28-Jun-04 5:20
Chris Ulliott28-Jun-04 5:20 
GeneralRe: LoadLibrary Fails :( Pin
User 665828-Jun-04 5:48
User 665828-Jun-04 5:48 
GeneralRe: LoadLibrary Fails :( Pin
Chris Ulliott28-Jun-04 5:51
Chris Ulliott28-Jun-04 5:51 
GeneralRe: LoadLibrary Fails :( Pin
jmkhael28-Jun-04 6:07
jmkhael28-Jun-04 6:07 
GeneralRe: LoadLibrary Fails :( Pin
Chris Ulliott28-Jun-04 6:14
Chris Ulliott28-Jun-04 6: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.