Click here to Skip to main content
16,005,169 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Generalshared memory Pin
Shanmuga Sundar25-Nov-03 22:56
Shanmuga Sundar25-Nov-03 22:56 
GeneralRe: shared memory Pin
Antti Keskinen26-Nov-03 1:46
Antti Keskinen26-Nov-03 1:46 
GeneralMessageBox in separate Thread Pin
Cedric Moonen25-Nov-03 22:42
Cedric Moonen25-Nov-03 22:42 
GeneralRe: MessageBox in separate Thread Pin
Antti Keskinen26-Nov-03 2:02
Antti Keskinen26-Nov-03 2:02 
GeneralRe: MessageBox in separate Thread Pin
Cedric Moonen26-Nov-03 2:10
Cedric Moonen26-Nov-03 2:10 
GeneralRe: MessageBox in separate Thread Pin
RChin26-Nov-03 3:48
RChin26-Nov-03 3:48 
GeneralRe: MessageBox in separate Thread Pin
Cedric Moonen26-Nov-03 3:56
Cedric Moonen26-Nov-03 3:56 
GeneralRe: MessageBox in separate Thread Pin
Antti Keskinen26-Nov-03 3:54
Antti Keskinen26-Nov-03 3:54 
In this case, you have two solutions:

1. Pop up a modeless dialog in the main thread (easy)
2. Create a seperate thread which will pop up a modal message box (harder)

I would suggest trying method #1. It is by far the most easiest way to accomplish it. When creating the dialog class, add an OnClickButton handler and put it to call DestroyWindow instead of EndDialog. This will make sure that the underlying window object is properly destroyed when the dialog closes up. No other changes are needed for modeless dialogs to work smoothly. To create it, construct an object and call Create.

-Antti Keskinen


----------------------------------------------
The definition of impossible is strictly dependant
on what we think is possible.
QuestionHow To extract icon of the associated file? Pin
Prakash Nadar25-Nov-03 22:18
Prakash Nadar25-Nov-03 22:18 
AnswerRe: How To extract icon of the associated file? Pin
Ravi Bhavnani26-Nov-03 4:54
professionalRavi Bhavnani26-Nov-03 4:54 
AnswerRe: How To extract icon of the associated file? Pin
Peter Molnar26-Nov-03 13:30
Peter Molnar26-Nov-03 13:30 
Generalwindow.h Pin
styve25-Nov-03 21:54
styve25-Nov-03 21:54 
GeneralRe: window.h Pin
Prakash Nadar25-Nov-03 22:09
Prakash Nadar25-Nov-03 22:09 
GeneralRe: window.h Pin
ZoogieZork26-Nov-03 5:30
ZoogieZork26-Nov-03 5:30 
GeneralAppend files Pin
chadell25-Nov-03 21:43
chadell25-Nov-03 21:43 
GeneralRe: Append files Pin
Shanmuga Sundar25-Nov-03 22:52
Shanmuga Sundar25-Nov-03 22:52 
GeneralRe: Append files Pin
chadell25-Nov-03 23:01
chadell25-Nov-03 23:01 
GeneralStatic Libraries Pin
sweep12325-Nov-03 21:42
sweep12325-Nov-03 21:42 
QuestionVC++.NET: Microsoft ADO Data Control ? Pin
Maxwell Chen25-Nov-03 21:19
Maxwell Chen25-Nov-03 21:19 
AnswerRe: VC++.NET: Microsoft ADO Data Control ? Pin
DrSerge25-Nov-03 23:56
DrSerge25-Nov-03 23:56 
AnswerRe: VC++.NET: Microsoft ADO Data Control ? Pin
Anonymous26-Nov-03 8:24
Anonymous26-Nov-03 8:24 
GeneralVisual C++ : Precompiled header error Pin
Jerome Conus25-Nov-03 20:08
Jerome Conus25-Nov-03 20:08 
GeneralRe: Visual C++ : Precompiled header error Pin
BaldwinMartin25-Nov-03 20:36
BaldwinMartin25-Nov-03 20:36 
GeneralRe: Visual C++ : Precompiled header error Pin
Jerome Conus25-Nov-03 20:39
Jerome Conus25-Nov-03 20:39 
GeneralRe: Visual C++ : Precompiled header error Pin
Prakash Nadar25-Nov-03 22:13
Prakash Nadar25-Nov-03 22:13 

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.