Click here to Skip to main content
15,899,754 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
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 
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 
elephantstar wrote:
I want to ask the user if they would like to save changes when they click on Close [X]. How do I do that...

It's done automatically by the document, if you've taken the necessary steps. When the document is modidfied, you simply need to call SetModifiedFlag(TRUE), and the document will prompt the user to save no matter how the application is shut down.


"When I was born I was so surprised that I didn't talk for a year and a half." - Gracie Allen


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 
GeneralRe: LoadLibrary Fails :( Pin
jmkhael28-Jun-04 7:04
jmkhael28-Jun-04 7:04 
GeneralRe: LoadLibrary Fails :( Pin
Chris Ulliott28-Jun-04 23:08
Chris Ulliott28-Jun-04 23:08 
GeneralRe: LoadLibrary Fails :( Pin
David Crow28-Jun-04 7:09
David Crow28-Jun-04 7:09 
GeneralRe: LoadLibrary Fails :( Pin
Chris Ulliott28-Jun-04 23:09
Chris Ulliott28-Jun-04 23:09 
GeneralRe: LoadLibrary Fails :( Pin
vladfein28-Jun-04 7:58
vladfein28-Jun-04 7:58 
GeneralRe: LoadLibrary Fails :( Pin
Chris Ulliott28-Jun-04 23:47
Chris Ulliott28-Jun-04 23:47 

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.