Click here to Skip to main content
15,913,235 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Selecting median Pin
Stefan_Lang27-Apr-12 6:54
Stefan_Lang27-Apr-12 6:54 
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 
Hello everybody,

This will take a little while to describe the problem I'm facing, and I will appreciate your patience.

I'm creating a pretty large SDI MFC application, with a lot of options and controls. Most of the application screens are list based. If that matters, imagine MS Word 2007 with editable list instead editable document.

Some of the controls activate a pretty lengthy operations that do work on the list, and update its entries. These operations use worker threads to do their work.

Now, the problem. I want to update the list on the go while disabling all the controls, except one - the "cancel" button.

A simple EnableWindow(FALSE) wouldn't work, as the application is Ribbon based. I.e. to make the buttons look disabled I must handle ON_UPDATE_COMMAND_UI.

Simple message pump wouldn't work as well, because of MFC message routing.

Can anybody suggest a proper approach for such an application? That is both relative simple and general (I have many different operations that activate worker threads).
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 
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 

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.