Click here to Skip to main content
15,891,607 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Problem with reading a file Pin
Cedric Moonen3-Sep-09 20:14
Cedric Moonen3-Sep-09 20:14 
AnswerRe: Problem with reading a file Pin
shuzh3-Sep-09 20:52
shuzh3-Sep-09 20:52 
GeneralRe: Problem with reading a file Pin
Michael Schubert3-Sep-09 21:19
Michael Schubert3-Sep-09 21:19 
AnswerRe: Problem with reading a file Pin
Michael Schubert3-Sep-09 21:24
Michael Schubert3-Sep-09 21:24 
AnswerRe: Problem with reading a file Pin
David Crow4-Sep-09 2:56
David Crow4-Sep-09 2:56 
AnswerRe: Problem with reading a file Pin
kakan4-Sep-09 3:08
professionalkakan4-Sep-09 3:08 
QuestionUpdating UI from thread Pin
_80863-Sep-09 16:54
_80863-Sep-09 16:54 
AnswerRe: Updating UI from thread Pin
«_Superman_»3-Sep-09 17:20
professional«_Superman_»3-Sep-09 17:20 
The right way to do it is to post messages to the thread that owns the UI.
Use the PostMessage[^] API to post messages.
For SetWindowText post the WM_SETTEXT[^] message.

The problem that can occur is such scenarios is when both the worker thread and the thread that owns the UI simultaneously updates the control. For SetWindowText, this may not be a problem because the function does the same thing of sending the WM_SETTEXT message.

«_Superman
I love work. It gives me something to do between weekends.

GeneralRe: Updating UI from thread Pin
_80863-Sep-09 17:39
_80863-Sep-09 17:39 
GeneralRe: Updating UI from thread Pin
«_Superman_»3-Sep-09 17:45
professional«_Superman_»3-Sep-09 17:45 
AnswerRe: Updating UI from thread Pin
Cedric Moonen3-Sep-09 20:03
Cedric Moonen3-Sep-09 20:03 
AnswerRe: Updating UI from thread Pin
Rajesh R Subramanian3-Sep-09 20:16
professionalRajesh R Subramanian3-Sep-09 20:16 
Questionbutton(visible&Enable) but CANNOT be pressed Pin
fitatc3-Sep-09 14:48
fitatc3-Sep-09 14:48 
AnswerRe: button(visible&Enable) but CANNOT be pressed Pin
Eric Haddan4-Sep-09 4:48
Eric Haddan4-Sep-09 4:48 
GeneralRe: button(visible&Enable) but CANNOT be pressed Pin
fitatc6-Sep-09 18:20
fitatc6-Sep-09 18:20 
Questionvector question Pin
RobJones3-Sep-09 11:50
RobJones3-Sep-09 11:50 
AnswerRe: vector question Pin
Nemanja Trifunovic3-Sep-09 12:08
Nemanja Trifunovic3-Sep-09 12:08 
GeneralRe: vector question Pin
RobJones3-Sep-09 12:12
RobJones3-Sep-09 12:12 
QuestionTemplates... they are nasty!! Pin
o.kauert3-Sep-09 11:43
o.kauert3-Sep-09 11:43 
AnswerRe: Templates... they are nasty!! Pin
Nemanja Trifunovic3-Sep-09 12:20
Nemanja Trifunovic3-Sep-09 12:20 
AnswerRe: Templates... they are nasty!! [modified] Pin
Chris Losinger3-Sep-09 16:15
professionalChris Losinger3-Sep-09 16:15 
GeneralRe: Templates... they are nasty!! Pin
«_Superman_»3-Sep-09 17:41
professional«_Superman_»3-Sep-09 17:41 
GeneralRe: Templates... they are nasty!! Pin
o.kauert3-Sep-09 23:14
o.kauert3-Sep-09 23:14 
AnswerRe: Templates... they are nasty!! Pin
Stuart Dootson3-Sep-09 21:44
professionalStuart Dootson3-Sep-09 21:44 
GeneralRe: Templates... they are nasty!! Pin
o.kauert3-Sep-09 23:27
o.kauert3-Sep-09 23:27 

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.