Click here to Skip to main content
16,006,605 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: VC++ becoming obsolete? Pin
Ryan Binns14-Jul-03 4:51
Ryan Binns14-Jul-03 4:51 
GeneralRe: VC++ becoming obsolete? Pin
John M. Drescher14-Jul-03 4:59
John M. Drescher14-Jul-03 4:59 
GeneralRe: VC++ becoming obsolete? Pin
Ryan Binns14-Jul-03 5:02
Ryan Binns14-Jul-03 5:02 
AnswerRe: VC++ becoming obsolete? Pin
567890123413-Jul-03 23:21
567890123413-Jul-03 23:21 
GeneralRe: VC++ becoming obsolete? Pin
Ryan Binns13-Jul-03 23:33
Ryan Binns13-Jul-03 23:33 
GeneralRe: VC++ becoming obsolete? Pin
jhwurmbach14-Jul-03 0:00
jhwurmbach14-Jul-03 0:00 
GeneralThreading and MFC Pin
Jeremy Pullicino13-Jul-03 22:39
Jeremy Pullicino13-Jul-03 22:39 
GeneralRe: Threading and MFC Pin
Ryan Binns13-Jul-03 22:49
Ryan Binns13-Jul-03 22:49 
Jeremy Pullicino wrote:
Should I send messages to the main thread and it do the work, or is it OK to update my controls from within the callback?

It's perfectly OK to update your controls from a second thread. However, you can't use MFC to do it. You have to use the straight Win32 API to do it. Luckily, updating controls generally uses MFC wrappers that are fairly thin wrappers over the API, so it's not much more work.

Sending messages to the main thread will work just as well, and will allow you to use MFC.

Basically, you can do what you like, depending on whether you want to be able to use MFC or not.

Hope this helps,

Ryan
"Punctuality is only a virtue for those who aren't smart enough to think of good excuses for being late" John Nichol "Point Of Impact"

GeneralRe: Threading and MFC Pin
Jeremy Pullicino14-Jul-03 0:40
Jeremy Pullicino14-Jul-03 0:40 
GeneralRe: Threading and MFC Pin
Ryan Binns14-Jul-03 0:45
Ryan Binns14-Jul-03 0:45 
GeneralRe: Threading and MFC Pin
Alexandru Savescu14-Jul-03 1:06
Alexandru Savescu14-Jul-03 1:06 
GeneralText Highlighting in CRichEditView Pin
Anonymous13-Jul-03 22:10
Anonymous13-Jul-03 22:10 
GeneralList controls with check boxes Pin
YaronNir13-Jul-03 21:56
YaronNir13-Jul-03 21:56 
GeneralRe: List controls with check boxes Pin
Ryan Binns13-Jul-03 23:06
Ryan Binns13-Jul-03 23:06 
GeneralRe: List controls with check boxes Pin
YaronNir13-Jul-03 23:12
YaronNir13-Jul-03 23:12 
GeneralRe: List controls with check boxes Pin
Ryan Binns13-Jul-03 23:21
Ryan Binns13-Jul-03 23:21 
GeneralRe: List controls with check boxes Pin
YaronNir14-Jul-03 1:07
YaronNir14-Jul-03 1:07 
GeneralRe: List controls with check boxes Pin
YaronNir14-Jul-03 1:07
YaronNir14-Jul-03 1:07 
GeneralRe: List controls with check boxes Pin
Ryan Binns14-Jul-03 1:38
Ryan Binns14-Jul-03 1:38 
GeneralRe: List controls with check boxes Pin
YaronNir14-Jul-03 1:46
YaronNir14-Jul-03 1:46 
GeneralRe: List controls with check boxes Pin
Ryan Binns14-Jul-03 1:49
Ryan Binns14-Jul-03 1:49 
Question??? Pin
DaveE9th13-Jul-03 21:08
DaveE9th13-Jul-03 21:08 
AnswerRe: ??? Pin
Cedric Moonen13-Jul-03 21:51
Cedric Moonen13-Jul-03 21:51 
AnswerRe: ??? Pin
jhwurmbach13-Jul-03 22:02
jhwurmbach13-Jul-03 22:02 
GeneralRe: ??? Pin
DaveE9th13-Jul-03 22:25
DaveE9th13-Jul-03 22:25 

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.