vc++
-
Hi, Im working in doc-view architecture .' the problem is when closing the project using syscommand 'close' in the title bar I have to call some fns. I have tried to catch WM_CLOSE IN view class but it doesnt work. so need some help regards, Murugan
You can definetly give a call to your functions in OnClose function. Where have you got stuck? Somethings seem HARD to do, until we know how to do them. ;-) _AnShUmAn_
-
Hi, Im working in doc-view architecture .' the problem is when closing the project using syscommand 'close' in the title bar I have to call some fns. I have tried to catch WM_CLOSE IN view class but it doesnt work. so need some help regards, Murugan
Override the Exitinstance Method. Knock out 't' from can't, You can if you think you can :cool:
-
Hi, Im working in doc-view architecture .' the problem is when closing the project using syscommand 'close' in the title bar I have to call some fns. I have tried to catch WM_CLOSE IN view class but it doesnt work. so need some help regards, Murugan
-
Override the Exitinstance Method. Knock out 't' from can't, You can if you think you can :cool:
A_Laxman wrote:
Override the Exitinstance Method.
ExitInstance is for application, not for View
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers, Alok Gupta VC Forum Q&A :- I/ IV
-
A_Laxman wrote:
Override the Exitinstance Method.
ExitInstance is for application, not for View
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers, Alok Gupta VC Forum Q&A :- I/ IV
GANsJob wrote:
When closing the project using syscommand 'close' in the title bar
what is the meaning of this???:~ Knock out 't' from can't, You can if you think you can :cool:
-
GANsJob wrote:
When closing the project using syscommand 'close' in the title bar
what is the meaning of this???:~ Knock out 't' from can't, You can if you think you can :cool:
button at top-right corner of a window.
Maxwell Chen
-
A_Laxman wrote:
Override the Exitinstance Method.
ExitInstance is for application, not for View
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers, Alok Gupta VC Forum Q&A :- I/ IV
Maxwell Chen wrote:
button at top-right corner of a window.Alok wrote:
ExitInstance is for application, not for View
am i right alok, that Maxwell want to do something when he exit from the project?:) Knock out 't' from can't, You can if you think you can :cool:
-
A_Laxman wrote:
Override the Exitinstance Method.
ExitInstance is for application, not for View
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers, Alok Gupta VC Forum Q&A :- I/ IV
ThatsAlok wrote:
ExitInstance is for application, not for View
The requirement was "when closing the project...I have to call some fns." Calling those functions in
ExitInstance()
satisfies that requirement.
"The largest fire starts but with the smallest spark." - David Crow
-
1. Add WM_CLOSE() in message map. 2. Add afx_msg void OnClose() function to that class. 3. Add the functionality u want to perform in that function on close of application.
-
1. Add WM_CLOSE() in message map. 2. Add afx_msg void OnClose() function to that class. 3. Add the functionality u want to perform in that function on close of application.