Click here to Skip to main content
15,890,123 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Selecting median Pin
David Crow24-Apr-12 6:01
David Crow24-Apr-12 6:01 
GeneralRe: Selecting median Pin
a1_shay24-Apr-12 10:13
a1_shay24-Apr-12 10:13 
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 
I do not understand this statement:
>> Simple message pump wouldn't work as well, because of MFC message routing.

Are you referring to a local message loop?

Of course EnableWindow won’t work, since ribbon Windows controls, all controls with are derived from CObject and are represented by just image drawn by the ribbon control. Few of them are actually hosting Windows control (like CMFCRibbonEdit for example).

Anyway, if you update some data in the background using worker thread, use a variable that would tell update command handler to toggle enabled state: disable when thread is still running, and enable when thread is done, using CCMdUI.
You can also consider using

ON_UPDATE_COMMAND_UI_RANGE, for the range of the ribbon’s panel controls.
JohnCz

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 
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 

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.