Click here to Skip to main content
15,919,028 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: MFC Worker Thread Question Pin
Prakash Nadar20-Feb-04 15:32
Prakash Nadar20-Feb-04 15:32 
GeneralRe: MFC Worker Thread Question Pin
Dev57820-Feb-04 16:25
Dev57820-Feb-04 16:25 
GeneralRe: MFC Worker Thread Question Pin
Prakash Nadar20-Feb-04 17:01
Prakash Nadar20-Feb-04 17:01 
GeneralRe: MFC Worker Thread Question Pin
Michael Dunn20-Feb-04 17:01
sitebuilderMichael Dunn20-Feb-04 17:01 
GeneralRe: MFC Worker Thread Question Pin
Balkrishna Talele20-Feb-04 21:53
Balkrishna Talele20-Feb-04 21:53 
GeneralRe: MFC Worker Thread Question Pin
Neville Franks20-Feb-04 22:06
Neville Franks20-Feb-04 22:06 
GeneralRe: MFC Worker Thread Question Pin
Dev57821-Feb-04 2:24
Dev57821-Feb-04 2:24 
GeneralRe: MFC Worker Thread Question Pin
David Crow23-Feb-04 3:39
David Crow23-Feb-04 3:39 
First off, remove the calls to UpdateData(), and use member control variables instead. Second, what you've created is a "worker" thread, or a thread with no message pump. A thread with no message pump should in no way be interacting with the UI. That is what a "UI" thread, or a thread with a message pump, is for. In the UI thread, simply post a message to the primary thread, the one that owns the UI, with what's to be updated.


"The pointy end goes in the other man." - Antonio Banderas (Zorro, 1998)
GeneralNo Subject Pin
achimera20-Feb-04 12:16
achimera20-Feb-04 12:16 
GeneralRe: file types Pin
mohdshiraz20-Feb-04 21:24
mohdshiraz20-Feb-04 21:24 
GeneralRe: file types Pin
Balkrishna Talele20-Feb-04 22:04
Balkrishna Talele20-Feb-04 22:04 
GeneralRe: file types Pin
Balkrishna Talele20-Feb-04 22:04
Balkrishna Talele20-Feb-04 22:04 
GeneralRe: file types Pin
David Crow23-Feb-04 3:53
David Crow23-Feb-04 3:53 
GeneralMFC42 and VC7.1 Pin
Rohde20-Feb-04 12:13
Rohde20-Feb-04 12:13 
GeneralRe: MFC42 and VC7.1 Pin
Antti Keskinen21-Feb-04 0:01
Antti Keskinen21-Feb-04 0:01 
GeneralRe: MFC42 and VC7.1 Pin
Rohde21-Feb-04 2:26
Rohde21-Feb-04 2:26 
GeneralTopmost property Pin
jlechem20-Feb-04 11:21
jlechem20-Feb-04 11:21 
GeneralRe: Topmost property Pin
User 665820-Feb-04 12:06
User 665820-Feb-04 12:06 
GeneralRe: Topmost property Pin
Balkrishna Talele20-Feb-04 22:07
Balkrishna Talele20-Feb-04 22:07 
GeneralRe: Topmost property Pin
jlechem21-Feb-04 6:07
jlechem21-Feb-04 6:07 
GeneralWnet functions Pin
Treyminator20-Feb-04 10:32
Treyminator20-Feb-04 10:32 
GeneralRe: Wnet functions Pin
David Crow20-Feb-04 10:56
David Crow20-Feb-04 10:56 
GeneralRe: Wnet functions Pin
l a u r e n20-Feb-04 15:51
l a u r e n20-Feb-04 15:51 
GeneralRe: Wnet functions Pin
Treyminator20-Feb-04 16:31
Treyminator20-Feb-04 16:31 
GeneralCustom Entry Point Pin
Alexander M.,20-Feb-04 9:15
Alexander M.,20-Feb-04 9:15 

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.