Click here to Skip to main content
15,887,333 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: CTabCtrl and spinner control - where is is documented? Pin
Mark Salsbery24-Sep-07 6:09
Mark Salsbery24-Sep-07 6:09 
QuestionCheck Application Pin
Tjie Pouw22-Sep-07 18:21
Tjie Pouw22-Sep-07 18:21 
AnswerRe: Check Application Pin
Hamed Musavi22-Sep-07 22:17
Hamed Musavi22-Sep-07 22:17 
JokeRe: Check Application Pin
Sreedhar DV26-Sep-07 0:17
Sreedhar DV26-Sep-07 0:17 
JokeRe: Check Application Pin
Hamed Musavi26-Sep-07 1:20
Hamed Musavi26-Sep-07 1:20 
Questionmodeless dialog & threads Pin
Peter Weyzen22-Sep-07 17:31
Peter Weyzen22-Sep-07 17:31 
QuestionRe: modeless dialog & threads Pin
Hamed Musavi22-Sep-07 23:31
Hamed Musavi22-Sep-07 23:31 
AnswerRe: modeless dialog & threads Pin
Mark Salsbery23-Sep-07 8:24
Mark Salsbery23-Sep-07 8:24 
Peter Weyzen wrote:
The dialog was created in a thread -- was wondering if that plays a role?

Definitely.  That thread needs to have a message loop and it sounds like your thread
doesn't.

You can either
a) change your thread to a UI thread
b) create the dialog on the app's UI thread. 

In the case of a progress dialog, the second alternative is probably easiest.  Let the
UI thread that's already in place handle the window messages and let the worker thread
do its intended work.  Use PostMessage() from the worker thread to communicate
with the dialog.

Mark



Mark Salsbery
Microsoft MVP - Visual C++

Java | [Coffee]

QuestionRe: modeless dialog & threads Pin
David Crow23-Sep-07 9:06
David Crow23-Sep-07 9:06 
AnswerRe: modeless dialog & threads Pin
Mark Salsbery23-Sep-07 9:24
Mark Salsbery23-Sep-07 9:24 
GeneralRe: modeless dialog & threads Pin
Peter Weyzen23-Sep-07 10:18
Peter Weyzen23-Sep-07 10:18 
GeneralRe: modeless dialog & threads Pin
Mark Salsbery23-Sep-07 10:32
Mark Salsbery23-Sep-07 10:32 
GeneralThinking is overrated. Pin
Stephen Hewitt23-Sep-07 15:07
Stephen Hewitt23-Sep-07 15:07 
GeneralRe: Thinking is overrated. Pin
Mark Salsbery23-Sep-07 15:33
Mark Salsbery23-Sep-07 15:33 
AnswerRe: modeless dialog & threads Pin
Mark Salsbery23-Sep-07 9:43
Mark Salsbery23-Sep-07 9:43 
GeneralRe: modeless dialog & threads Pin
David Crow23-Sep-07 10:10
David Crow23-Sep-07 10:10 
GeneralRe: modeless dialog & threads Pin
Mark Salsbery23-Sep-07 10:27
Mark Salsbery23-Sep-07 10:27 
GeneralRe: modeless dialog & threads Pin
Peter Weyzen23-Sep-07 10:15
Peter Weyzen23-Sep-07 10:15 
QuestionUnable to specify CESetup DLL in VS2005 Smart Device CAB project - Pin
yudhisthira22-Sep-07 15:33
yudhisthira22-Sep-07 15:33 
QuestionOpenRAID challenge - little off topic Pin
Vaclav_22-Sep-07 6:56
Vaclav_22-Sep-07 6:56 
AnswerRe: OpenRAID challenge - little off topic Pin
carrivick22-Sep-07 19:29
carrivick22-Sep-07 19:29 
GeneralRe: OpenRAID challenge - little off topic Pin
Vaclav_23-Sep-07 4:35
Vaclav_23-Sep-07 4:35 
Questiongraphics program Pin
Sai Yasodharan22-Sep-07 6:18
Sai Yasodharan22-Sep-07 6:18 
AnswerRe: graphics program Pin
nbugalia22-Sep-07 7:00
nbugalia22-Sep-07 7:00 
QuestionRe: graphics program Pin
Sai Yasodharan23-Sep-07 5:33
Sai Yasodharan23-Sep-07 5:33 

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.