Click here to Skip to main content
15,907,396 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Selecting median Pin
David Crow24-Apr-12 17:48
David Crow24-Apr-12 17:48 
GeneralRe: Selecting median Pin
a1_shay25-Apr-12 4:57
a1_shay25-Apr-12 4:57 
GeneralRe: Selecting median Pin
David Crow25-Apr-12 5:35
David Crow25-Apr-12 5:35 
GeneralRe: Selecting median Pin
Stefan_Lang27-Apr-12 6:33
Stefan_Lang27-Apr-12 6:33 
QuestionMFC, Threads and Responsive GUI Pin
Member 296436524-Apr-12 2:10
Member 296436524-Apr-12 2:10 
AnswerRe: MFC, Threads and Responsive GUI Pin
JohnCz24-Apr-12 2:35
JohnCz24-Apr-12 2:35 
GeneralRe: MFC, Threads and Responsive GUI Pin
krmed24-Apr-12 10:31
krmed24-Apr-12 10:31 
GeneralRe: MFC, Threads and Responsive GUI Pin
JohnCz24-Apr-12 11:11
JohnCz24-Apr-12 11:11 
I do not think that UpdateWindow addresses the original problem. UpdateWindow triggers system to sends (not posts) WM_PAINT message, therefore message is not placed in the queue. SendMessage causes system to call windows procedure directly, therefore this s a blocking call.

Anyway, original problem is to update UI controls on the ribbon, not list control.
Setting variable using proper synchronization is I think less expensive than posting the custom message from the worker thread; however I think the difference is negligible.
If PostMessage is used, the handler can set variable to be used in Update UI handlers.
JohnCz

AnswerRe: MFC, Threads and Responsive GUI Pin
Rajesh R Subramanian25-Apr-12 3:59
professionalRajesh R Subramanian25-Apr-12 3:59 
AnswerRe: MFC, Threads and Responsive GUI Pin
Eytukan27-Apr-12 3:27
Eytukan27-Apr-12 3:27 
QuestionDesign Practices, implementing RSA Pin
Vidit Ochani24-Apr-12 2:00
Vidit Ochani24-Apr-12 2:00 
AnswerRe: Design Practices, implementing RSA Pin
Aescleal24-Apr-12 4:28
Aescleal24-Apr-12 4:28 
GeneralRe: Design Practices, implementing RSA Pin
Vidit Ochani25-Apr-12 0:33
Vidit Ochani25-Apr-12 0:33 
GeneralRe: Design Practices, implementing RSA Pin
Aescleal25-Apr-12 5:15
Aescleal25-Apr-12 5:15 
GeneralRe: Design Practices, implementing RSA Pin
Vidit Ochani25-Apr-12 10:02
Vidit Ochani25-Apr-12 10:02 
GeneralRe: Design Practices, implementing RSA Pin
Aescleal27-Apr-12 1:35
Aescleal27-Apr-12 1:35 
QuestionButton Color In MFC Pin
002comp24-Apr-12 0:40
002comp24-Apr-12 0:40 
AnswerRe: Button Color In MFC Pin
JohnCz24-Apr-12 2:38
JohnCz24-Apr-12 2:38 
GeneralRe: Button Color In MFC Pin
002comp24-Apr-12 2:42
002comp24-Apr-12 2:42 
AnswerRe: Button Color In MFC Pin
David Crow24-Apr-12 2:39
David Crow24-Apr-12 2:39 
GeneralRe: Button Color In MFC Pin
002comp24-Apr-12 2:44
002comp24-Apr-12 2:44 
GeneralRe: Button Color In MFC Pin
David Crow24-Apr-12 6:40
David Crow24-Apr-12 6:40 
AnswerRe: Button Color In MFC Pin
jeron124-Apr-12 3:58
jeron124-Apr-12 3:58 
AnswerRe: Button Color In MFC Pin
JohnCz24-Apr-12 4:08
JohnCz24-Apr-12 4:08 
QuestionRe: Button Color In MFC Pin
David Crow24-Apr-12 6:04
David Crow24-Apr-12 6:04 

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.