Click here to Skip to main content
16,007,885 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionDrive types Pin
RomTibi5-Jun-07 6:07
RomTibi5-Jun-07 6:07 
AnswerRe: Drive types Pin
Hans Dietrich5-Jun-07 6:46
mentorHans Dietrich5-Jun-07 6:46 
GeneralRe: Drive types Pin
RomTibi5-Jun-07 8:39
RomTibi5-Jun-07 8:39 
QuestionVC or not VC Pin
Jooooe5-Jun-07 5:52
Jooooe5-Jun-07 5:52 
QuestionRe: VC or not VC Pin
David Crow5-Jun-07 6:01
David Crow5-Jun-07 6:01 
AnswerRe: VC or not VC Pin
Matthew Faithfull5-Jun-07 6:04
Matthew Faithfull5-Jun-07 6:04 
AnswerRe: VC or not VC Pin
bob169726-Jun-07 6:01
bob169726-Jun-07 6:01 
QuestionProblem with closing program Pin
KellyR5-Jun-07 5:29
KellyR5-Jun-07 5:29 
Hi,

This program is a dialog-based MFC application.

My problem is that when I click the "X" in the top right corner of the program to close it, only the window closes, but the process remains running.

I'm not very familiar with MFC (I usually use standard Windows API) so I don't know how to catch the WM_SYSCOMMAND message to handle this. I've tried ON_WM_SYSCOMMAND() in the message map, but I get a compiler error since neither of my two classes are inherited from CWnd objects (one is CWinApp, the other is CDialog).

Does anyone know why my program isn't closing, or how could I catch the WM_SYSCOMMAND message so I could force it to close?

Thanks!

KR

QuestionRe: Problem with closing program Pin
David Crow5-Jun-07 5:38
David Crow5-Jun-07 5:38 
GeneralRe: Problem with closing program [modified] Pin
KellyR5-Jun-07 7:06
KellyR5-Jun-07 7:06 
QuestionRe: Problem with closing program Pin
Mark Salsbery5-Jun-07 7:21
Mark Salsbery5-Jun-07 7:21 
QuestionRe: Problem with closing program Pin
KellyR5-Jun-07 7:29
KellyR5-Jun-07 7:29 
QuestionRe: Problem with closing program Pin
Mark Salsbery5-Jun-07 7:43
Mark Salsbery5-Jun-07 7:43 
GeneralRe: Problem with closing program Pin
KellyR5-Jun-07 7:51
KellyR5-Jun-07 7:51 
GeneralRe: Problem with closing program Pin
Mark Salsbery5-Jun-07 7:57
Mark Salsbery5-Jun-07 7:57 
GeneralRe: Problem with closing program Pin
KellyR5-Jun-07 8:04
KellyR5-Jun-07 8:04 
GeneralRe: Problem with closing program Pin
Mark Salsbery5-Jun-07 8:21
Mark Salsbery5-Jun-07 8:21 
QuestionRe: Problem with closing program Pin
David Crow5-Jun-07 10:08
David Crow5-Jun-07 10:08 
AnswerRe: Problem with closing program Pin
Michael Dunn5-Jun-07 19:23
sitebuilderMichael Dunn5-Jun-07 19:23 
QuestionHeap error Pin
simoncoul5-Jun-07 5:27
simoncoul5-Jun-07 5:27 
QuestionRe: Heap error Pin
David Crow5-Jun-07 5:37
David Crow5-Jun-07 5:37 
AnswerRe: Heap error Pin
simoncoul5-Jun-07 5:44
simoncoul5-Jun-07 5:44 
QuestionRe: Heap error Pin
David Crow5-Jun-07 10:22
David Crow5-Jun-07 10:22 
AnswerRe: Heap error Pin
Matthew Faithfull5-Jun-07 5:50
Matthew Faithfull5-Jun-07 5:50 
GeneralRe: Heap error Pin
simoncoul5-Jun-07 6:06
simoncoul5-Jun-07 6:06 

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.