Click here to Skip to main content
15,847,077 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionGet IP address of computer (MFC/VC++) Pin
waxie22-Jan-06 19:10
waxie22-Jan-06 19:10 
AnswerRe: Get IP address of computer (MFC/VC++) Pin
JonEngle22-Jan-06 20:36
JonEngle22-Jan-06 20:36 
AnswerRe: Get IP address of computer (MFC/VC++) Pin
eli1502197922-Jan-06 22:18
eli1502197922-Jan-06 22:18 
Questionhow to get all computer name in a network fastly. Pin
baldha rakesh22-Jan-06 18:53
baldha rakesh22-Jan-06 18:53 
Questionenable and disable the dialog controls Pin
Anu_Bala22-Jan-06 18:52
Anu_Bala22-Jan-06 18:52 
AnswerRe: enable and disable the dialog controls Pin
Owner drawn22-Jan-06 19:17
Owner drawn22-Jan-06 19:17 
AnswerRe: enable and disable the dialog controls Pin
David Crow23-Jan-06 5:17
David Crow23-Jan-06 5:17 
AnswerRe: enable and disable the dialog controls Pin
domehead23-Jan-06 8:03
domehead23-Jan-06 8:03 
Have your worker threads post predefined windows messages (custom user-defined messages) back to the dialog, in the message handler the dialog enables/disables the controls as needed.

It's usually best to communicate with your GUI thread from your worker threads using messages. Takes away a lot of synchronization issues too, since messages are by definition synchronous.

I think there's a good article somewhere on Dr. Joseph Newcomer's site on this subject: www.flounder.net

Good Luck!

Mike Stephenson
QuestionKeyBoard Handling Pin
rajeevktripathi22-Jan-06 18:51
rajeevktripathi22-Jan-06 18:51 
AnswerRe: KeyBoard Handling Pin
Rajesh R Subramanian22-Jan-06 22:19
professionalRajesh R Subramanian22-Jan-06 22:19 
QuestionRe: KeyBoard Handling Pin
rajeevktripathi23-Jan-06 2:11
rajeevktripathi23-Jan-06 2:11 
AnswerRe: KeyBoard Handling Pin
Rage23-Jan-06 2:59
professionalRage23-Jan-06 2:59 
QuestionRe: KeyBoard Handling Pin
rajeevktripathi23-Jan-06 3:12
rajeevktripathi23-Jan-06 3:12 
AnswerRe: KeyBoard Handling Pin
Rajesh R Subramanian23-Jan-06 19:24
professionalRajesh R Subramanian23-Jan-06 19:24 
QuestionHow to use regular dll? Pin
rushing22-Jan-06 18:05
rushing22-Jan-06 18:05 
AnswerRe: How to use regular dll? Pin
Ryan Binns22-Jan-06 18:14
Ryan Binns22-Jan-06 18:14 
Questionwin98 usb Pin
act_x22-Jan-06 17:45
act_x22-Jan-06 17:45 
QuestionCleaning up the registry Pin
Shraddhan22-Jan-06 17:38
Shraddhan22-Jan-06 17:38 
QuestionMenu IDs converting to Number (VS 2003) ?!? Pin
Warren Stevens22-Jan-06 17:36
Warren Stevens22-Jan-06 17:36 
AnswerRe: Menu IDs converting to Number (VS 2003) ?!? Pin
Ryan Binns22-Jan-06 18:15
Ryan Binns22-Jan-06 18:15 
AnswerRe: Menu IDs converting to Number (VS 2003) ?!? Pin
Warren Stevens23-Jan-06 2:46
Warren Stevens23-Jan-06 2:46 
AnswerRe: Menu IDs converting to Number (VS 2003) ?!? Pin
Rob Caldecott22-Jan-06 22:31
Rob Caldecott22-Jan-06 22:31 
AnswerRe: Menu IDs converting to Number (VS 2003) ?!? Pin
Warren Stevens23-Jan-06 2:50
Warren Stevens23-Jan-06 2:50 
GeneralRe: Menu IDs converting to Number (VS 2003) ?!? Pin
Rob Caldecott23-Jan-06 2:55
Rob Caldecott23-Jan-06 2:55 
AnswerRe: Menu IDs converting to Number (VS 2003) ?!? Pin
Warren Stevens23-Jan-06 3:26
Warren Stevens23-Jan-06 3:26 

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.