Click here to Skip to main content
15,906,097 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Managing Multiple Docs/Views in a MDI MFC App Pin
G. Steudtel14-Aug-03 3:41
G. Steudtel14-Aug-03 3:41 
GeneralRe: Managing Multiple Docs/Views in a MDI MFC App Pin
Steve S14-Aug-03 5:42
Steve S14-Aug-03 5:42 
QuestionHow to add text below the Icon dynamically? Pin
forfuture113-Aug-03 20:13
forfuture113-Aug-03 20:13 
GeneralDirectX Audio Pin
DougW4813-Aug-03 19:20
DougW4813-Aug-03 19:20 
GeneralRe: DirectX Audio Pin
Andrew Walker13-Aug-03 23:44
Andrew Walker13-Aug-03 23:44 
GeneralRe: DirectX Audio Pin
Joey Bloggs14-Aug-03 2:30
Joey Bloggs14-Aug-03 2:30 
Questionscroll in listview ??? Pin
_skidrow_vn_13-Aug-03 18:59
_skidrow_vn_13-Aug-03 18:59 
AnswerRe: scroll in listview ??? Pin
David Crow14-Aug-03 3:28
David Crow14-Aug-03 3:28 
GeneralShow Constant Variables Pin
zolfaghari13-Aug-03 18:40
zolfaghari13-Aug-03 18:40 
GeneralRe: Show Constant Variables Pin
Michael Dunn15-Aug-03 19:05
sitebuilderMichael Dunn15-Aug-03 19:05 
Questionhow to translate dynimic array to ocx control? Pin
xnew13-Aug-03 17:00
xnew13-Aug-03 17:00 
AnswerRe: how to translate dynimic array to ocx control? Pin
geo_m14-Aug-03 5:15
geo_m14-Aug-03 5:15 
GeneralDeleting objects Pin
chito13-Aug-03 16:21
chito13-Aug-03 16:21 
GeneralRe: Deleting objects Pin
Dave Bryant13-Aug-03 16:51
Dave Bryant13-Aug-03 16:51 
GeneralCEdit focus Pin
Fei Lok13-Aug-03 12:23
Fei Lok13-Aug-03 12:23 
GeneralRe: CEdit focus Pin
Dave Bryant13-Aug-03 12:50
Dave Bryant13-Aug-03 12:50 
GeneralRe: CEdit focus Pin
Anonymous14-Aug-03 5:26
Anonymous14-Aug-03 5:26 
GeneralRe: CEdit focus Pin
jhwurmbach13-Aug-03 21:48
jhwurmbach13-Aug-03 21:48 
GeneralAddition of control variable generates exception Pin
Binayak13-Aug-03 12:06
Binayak13-Aug-03 12:06 
GeneralRe: Addition of control variable generates exception Pin
Steve S13-Aug-03 23:39
Steve S13-Aug-03 23:39 
GeneralApp closure when Windows is shutting down.. Pin
RobJones13-Aug-03 11:35
RobJones13-Aug-03 11:35 
GeneralRe: App closure when Windows is shutting down.. Pin
Serge Krynine13-Aug-03 22:52
Serge Krynine13-Aug-03 22:52 
My understanding of the problem is that out of the following causes of exiting applications:

1) File | Exit menu option chosen;
2) Exit button on the title bar pressed;
3) The user or an application logs off current session;
4) The user “ends task” using Windows Task Manager;
5) The user or an application shuts down the Windows.

you need to run the routine when the application has some time to do this, namely when the standard shutting down of the application occur, namely when the 1) situation.

If this is true, you need to use standard command ID, namely the ID_APP_EXIT. If you define the OnAppExit() command handler on you class, which inherits from the CWinApp MFC’s class, that command handler should be called when 1) and should not be called when 2) - 5). That’s my understanding; you still need to test all the cases.

Serge

GeneralRe: App closure when Windows is shutting down.. Pin
Ryan Binns14-Aug-03 0:12
Ryan Binns14-Aug-03 0:12 
GeneralMFC database questions. Pin
Vassilis Papoulidis13-Aug-03 11:24
Vassilis Papoulidis13-Aug-03 11:24 
GeneralRe: MFC database questions. Pin
John M. Drescher13-Aug-03 11:29
John M. Drescher13-Aug-03 11:29 

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.