Click here to Skip to main content
16,016,229 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Project part two. Pin
daveyerwin6-Jun-07 6:44
daveyerwin6-Jun-07 6:44 
AnswerRe: Project part two. Pin
jhwurmbach6-Jun-07 6:50
jhwurmbach6-Jun-07 6:50 
AnswerRe: Project part two. Pin
Reagan Conservative6-Jun-07 6:43
Reagan Conservative6-Jun-07 6:43 
GeneralRe: Project part two. Pin
Mark Salsbery6-Jun-07 7:05
Mark Salsbery6-Jun-07 7:05 
QuestionDownconverting froma 32-bit bitmap to a 4-bit bitmap Pin
TheDelChop6-Jun-07 5:48
TheDelChop6-Jun-07 5:48 
AnswerRe: Downconverting froma 32-bit bitmap to a 4-bit bitmap Pin
Mark Salsbery6-Jun-07 6:10
Mark Salsbery6-Jun-07 6:10 
Questioninvoke app Pin
Try6-Jun-07 5:29
Try6-Jun-07 5:29 
AnswerRe: invoke app Pin
Mark Salsbery6-Jun-07 5:57
Mark Salsbery6-Jun-07 5:57 
Basically, you could do this:

EnableWindow(hwndMain, FALSE);
...wait for other app
EnableWindow(hwndMain, TRUE);


Using WaitForSingleObject() is halting all window message processing in your app, which is why
to the system, it's not responding. It's also not going to update its UI if you move other
windows over it.

To get around this, you may want to change the design a bit, something like:

1) Disable the main window
2) Start a second thread which launches the second app and waits
3) When wait completes on the second thread, post a message to the main window.
4) When the main window receives the message, enable the main window

Mark


"Posting a VB.NET question in the C++ forum will end in tears." Chris Maunder

GeneralRe: invoke app Pin
Stephen Hewitt6-Jun-07 18:18
Stephen Hewitt6-Jun-07 18:18 
GeneralRe: invoke app Pin
Mark Salsbery7-Jun-07 4:43
Mark Salsbery7-Jun-07 4:43 
QuestionPDF Pin
S Douglas6-Jun-07 4:50
professionalS Douglas6-Jun-07 4:50 
AnswerRe: PDF Pin
Hamid_RT6-Jun-07 5:04
Hamid_RT6-Jun-07 5:04 
GeneralRe: PDF Pin
S Douglas6-Jun-07 7:31
professionalS Douglas6-Jun-07 7:31 
QuestionWhy did the function PfAddFiltersToInterface always failed? Pin
yzzm6-Jun-07 4:49
yzzm6-Jun-07 4:49 
Questionios ???? Pin
Software_Specialist6-Jun-07 4:43
Software_Specialist6-Jun-07 4:43 
QuestionRe: ios ???? Pin
David Crow6-Jun-07 4:56
David Crow6-Jun-07 4:56 
AnswerRe: ios ???? Pin
Software_Specialist6-Jun-07 5:02
Software_Specialist6-Jun-07 5:02 
GeneralRe: ios ???? Pin
David Crow6-Jun-07 5:11
David Crow6-Jun-07 5:11 
AnswerRe: ios ???? Pin
Matthew Faithfull6-Jun-07 5:07
Matthew Faithfull6-Jun-07 5:07 
GeneralRe: ios ???? Pin
Software_Specialist6-Jun-07 5:14
Software_Specialist6-Jun-07 5:14 
GeneralRe: ios ???? Pin
David Crow6-Jun-07 7:27
David Crow6-Jun-07 7:27 
GeneralRe: ios ???? Pin
Mark Salsbery6-Jun-07 7:41
Mark Salsbery6-Jun-07 7:41 
GeneralRe: ios ???? Pin
Software_Specialist6-Jun-07 23:05
Software_Specialist6-Jun-07 23:05 
QuestionCImage in Visual C++ 6 Pin
iayd6-Jun-07 4:14
iayd6-Jun-07 4:14 
AnswerRe: CImage in Visual C++ 6 Pin
Hamid_RT6-Jun-07 4:30
Hamid_RT6-Jun-07 4:30 

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.