Click here to Skip to main content
15,915,873 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: VC++ 6.0 and DAO db access Pin
Steve S23-Oct-06 21:54
Steve S23-Oct-06 21:54 
GeneralRe: VC++ 6.0 and DAO db access Pin
giannib2k24-Oct-06 4:56
giannib2k24-Oct-06 4:56 
QuestionHow to prevent window to get focus Pin
AnTri23-Oct-06 6:16
AnTri23-Oct-06 6:16 
AnswerRe: How to prevent window to get focus Pin
includeh1023-Oct-06 8:48
includeh1023-Oct-06 8:48 
GeneralRe: How to prevent window to get focus Pin
AnTri23-Oct-06 23:17
AnTri23-Oct-06 23:17 
QuestionWindows Mobile 5.0 Pocket PC SDK Pin
surfman1923-Oct-06 5:27
surfman1923-Oct-06 5:27 
QuestionClosing App and DLL? Pin
Cpt Rick23-Oct-06 5:16
Cpt Rick23-Oct-06 5:16 
AnswerRe: Closing App and DLL? Pin
TClarke23-Oct-06 6:07
TClarke23-Oct-06 6:07 
I have had this issue myself and would too like to know if there is some Zen approach that gives a warm fuzzy feeling.

Simply, the way I saw it was, that there is a higherachy of modal windows that have to be killed off in the right sequence.

It's interesting that the PostQuitMessage message you sent to the app seemed to be passed along to the right window rather than causing you trouble. It might just be best in that case to do the following:

while(::IsWindow(appWindow)) {
::PostQuitMessage(1);
}

If that doesn't work, do what I did, which was to start at the further most relevant child window and post to them each a WM_CLOSE message.

This may not be what you wanted to hear and I'll be watching this thread closely to see if anyone has any better ideas but in lieu of any other responses I thought you may at least like to know that there is commercial software out there that uses this techniqueSmile | :)

Tom
GeneralRe: Closing App and DLL? Pin
Cpt Rick23-Oct-06 7:47
Cpt Rick23-Oct-06 7:47 
Question[Message Deleted] Pin
AJKU BUIUBIUA23-Oct-06 4:36
AJKU BUIUBIUA23-Oct-06 4:36 
AnswerRe: reading from files under Linux Pin
Cedric Moonen23-Oct-06 4:41
Cedric Moonen23-Oct-06 4:41 
AnswerRe: reading from files under Linux Pin
Nemanja Trifunovic23-Oct-06 4:43
Nemanja Trifunovic23-Oct-06 4:43 
AnswerRe: reading from files under Linux Pin
Eric Dahlvang23-Oct-06 4:54
Eric Dahlvang23-Oct-06 4:54 
General[Message Deleted] Pin
AJKU BUIUBIUA23-Oct-06 5:34
AJKU BUIUBIUA23-Oct-06 5:34 
GeneralRe: reading from files under Linux Pin
Zac Howland23-Oct-06 7:33
Zac Howland23-Oct-06 7:33 
GeneralRe: reading from files under Linux Pin
Eric Dahlvang23-Oct-06 6:38
Eric Dahlvang23-Oct-06 6:38 
AnswerRe: reading from files under Linux Pin
kakan23-Oct-06 19:54
professionalkakan23-Oct-06 19:54 
QuestionLNK4006 - double definition ?! Pin
Mr.Brainley23-Oct-06 3:41
Mr.Brainley23-Oct-06 3:41 
AnswerRe: LNK4006 - double definition ?! Pin
Chris Losinger23-Oct-06 4:16
professionalChris Losinger23-Oct-06 4:16 
GeneralRe: LNK4006 - double definition ?! Pin
Mr.Brainley23-Oct-06 4:37
Mr.Brainley23-Oct-06 4:37 
GeneralRe: LNK4006 - double definition ?! Pin
Chris Losinger23-Oct-06 4:44
professionalChris Losinger23-Oct-06 4:44 
GeneralRe: LNK4006 - double definition ?! Pin
Mr.Brainley23-Oct-06 4:55
Mr.Brainley23-Oct-06 4:55 
QuestionKnowing/Logging which programs have been launched [modified] Pin
OddArne23-Oct-06 0:33
OddArne23-Oct-06 0:33 
AnswerRe: Knowing/Logging which programs have been launched Pin
TClarke23-Oct-06 5:43
TClarke23-Oct-06 5:43 
GeneralRe: Knowing/Logging which programs have been launched Pin
OddArne23-Oct-06 22:58
OddArne23-Oct-06 22:58 

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.