Click here to Skip to main content
15,915,093 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralI saw that but... Pin
20-Jan-02 12:14
suss20-Jan-02 12:14 
GeneralGetting MFC controls Pin
Steve Severance20-Jan-02 7:28
Steve Severance20-Jan-02 7:28 
GeneralRe: Getting MFC controls Pin
Ravi Bhavnani20-Jan-02 11:25
professionalRavi Bhavnani20-Jan-02 11:25 
GeneralRe: Getting MFC controls Pin
Steve Severance20-Jan-02 14:36
Steve Severance20-Jan-02 14:36 
GeneralRe: Getting MFC controls Pin
Ravi Bhavnani21-Jan-02 1:37
professionalRavi Bhavnani21-Jan-02 1:37 
GeneralRe: Getting MFC controls Pin
Jay Beckert20-Jan-02 16:56
Jay Beckert20-Jan-02 16:56 
GeneralRe: Getting MFC controls Pin
Roger Allen21-Jan-02 2:26
Roger Allen21-Jan-02 2:26 
GeneralRe: Getting MFC controls Pin
Anna-Jayne Metcalfe21-Jan-02 4:09
Anna-Jayne Metcalfe21-Jan-02 4:09 
I'm afraid CWnd pointers - as returned by GetDlgItem() - are not thread safe, and cannot therefore be passed across thread boundaries.

Fortunately, the HWND to which the CWnd object is attached can.

What you will probably have to do is use the Platform SDK version of GetDlgItem() to give you the HWND or the control you're interested in, then create a local CWnd object in the thread you need to use it, and call CWnd::Attach() to associate it with the HWND.

Good luck Smile | :)

Andy Metcalfe - Sonardyne International Ltd

Trouble with resource IDs? Try the Resource ID Organiser Add-In for Visual C++

"I would be careful in separating your wierdness, a good quirky weirdness, from the disturbed wierdness of people who take pleasure from PVC sheep with fruit repositories."
- Paul Watson
GeneralReport Pin
Drawil20-Jan-02 7:16
Drawil20-Jan-02 7:16 
GeneralRe: Report Pin
Bernhard20-Jan-02 19:27
Bernhard20-Jan-02 19:27 
GeneralRe: Report Pin
Drawil21-Jan-02 0:39
Drawil21-Jan-02 0:39 
GeneralRe: Report Pin
Bernhard21-Jan-02 3:05
Bernhard21-Jan-02 3:05 
QuestionBold and regular text in CToolTipCtrl? Pin
User 665820-Jan-02 7:04
User 665820-Jan-02 7:04 
Questionselect * from table1 where field1= variable,why error? Pin
NowOKcom20-Jan-02 7:00
NowOKcom20-Jan-02 7:00 
AnswerRe: select * from table1 where field1= variable,why error? Pin
Christopher Lord20-Jan-02 12:38
Christopher Lord20-Jan-02 12:38 
GeneralNo separators on toolbars Pin
Jon Newman20-Jan-02 6:59
Jon Newman20-Jan-02 6:59 
Questionstr.Format(" with a qoute " in a string"); ??? Pin
Jay Beckert20-Jan-02 6:15
Jay Beckert20-Jan-02 6:15 
AnswerRe: str.Format(" with a qoute " in a string"); ??? Pin
Jay Beckert20-Jan-02 6:29
Jay Beckert20-Jan-02 6:29 
GeneralRe: str.Format(" with a qoute " in a string"); ??? Pin
User 665820-Jan-02 7:06
User 665820-Jan-02 7:06 
QuestionDrag'n'Drop to Explorer windows? Pin
Lofote20-Jan-02 4:37
Lofote20-Jan-02 4:37 
AnswerRe: Drag'n'Drop to Explorer windows? Pin
Michael Dunn20-Jan-02 6:56
sitebuilderMichael Dunn20-Jan-02 6:56 
GeneralBYTE concatenation and strcat() questions Pin
Kuniva20-Jan-02 3:28
Kuniva20-Jan-02 3:28 
GeneralRe: BYTE concatenation and strcat() questions Pin
Michael Dunn20-Jan-02 6:58
sitebuilderMichael Dunn20-Jan-02 6:58 
GeneralWin2000 Registry Problem Pin
John Clump20-Jan-02 2:02
John Clump20-Jan-02 2:02 
GeneralRe: Win2000 Registry Problem Pin
Michael Dunn20-Jan-02 7:02
sitebuilderMichael Dunn20-Jan-02 7:02 

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.