Click here to Skip to main content
16,011,868 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: GUI implementation Pin
Nish Nishant5-Mar-02 20:23
sitebuilderNish Nishant5-Mar-02 20:23 
GeneralRe: GUI implementation Pin
Christian Graus5-Mar-02 20:25
protectorChristian Graus5-Mar-02 20:25 
GeneralRe: GUI implementation Pin
Morozov Alexey5-Mar-02 20:41
Morozov Alexey5-Mar-02 20:41 
GeneralRe: GUI implementation Pin
Nish Nishant5-Mar-02 21:31
sitebuilderNish Nishant5-Mar-02 21:31 
GeneralRe: GUI implementation Pin
Tomasz Sowinski6-Mar-02 0:12
Tomasz Sowinski6-Mar-02 0:12 
GeneralRe: GUI implementation Pin
Morozov Alexey6-Mar-02 13:25
Morozov Alexey6-Mar-02 13:25 
GeneralThread Probs (again) Pin
MarkPQ5-Mar-02 17:00
MarkPQ5-Mar-02 17:00 
GeneralRe: Thread Probs (again) Pin
5-Mar-02 17:24
suss5-Mar-02 17:24 
Mark,

Change the HWND_BROADCAST to the window handle of the parent.
ie. PostMessage(hWndParent, wm_Message, (WPARAM)0, (LPARAM)ps);

The hWndParent handle can be passed into the thread during creation or maybe simply via another custom message...

A note of caution. Posting messages with pointers to memory is bad news. Make sure that memory posted from the thread to the parent is not cleaned up/garbled before or during the parent's processing of the message. In your example, your passing a new instance of a CString() which needs to be cleaned up by the parent.

GeneralRe: Thread Probs (again) Pin
MarkPQ5-Mar-02 17:43
MarkPQ5-Mar-02 17:43 
GeneralRe: Thread Probs (again) Pin
MarkPQ5-Mar-02 17:57
MarkPQ5-Mar-02 17:57 
GeneralRe: Thread Probs (again) Pin
5-Mar-02 18:24
suss5-Mar-02 18:24 
GeneralDouble buffer example Pin
alex.barylski5-Mar-02 15:45
alex.barylski5-Mar-02 15:45 
GeneralRe: Double buffer example Pin
Tomasz Sowinski6-Mar-02 0:04
Tomasz Sowinski6-Mar-02 0:04 
Generalreal simple question Pin
5-Mar-02 15:32
suss5-Mar-02 15:32 
GeneralRe: real simple question Pin
alex.barylski5-Mar-02 16:02
alex.barylski5-Mar-02 16:02 
GeneralRe: real simple question Pin
Michael Dunn5-Mar-02 16:28
sitebuilderMichael Dunn5-Mar-02 16:28 
GeneralRe: real simple question Pin
5-Mar-02 16:42
suss5-Mar-02 16:42 
GeneralRe: real simple question Pin
alex.barylski5-Mar-02 17:53
alex.barylski5-Mar-02 17:53 
GeneralRe: real simple question Pin
Todd.Harvey6-Mar-02 9:13
Todd.Harvey6-Mar-02 9:13 
QuestionWhats wrong with this? Pin
SilverShalkin5-Mar-02 14:01
SilverShalkin5-Mar-02 14:01 
AnswerRe: Whats wrong with this? Pin
Lofote5-Mar-02 14:26
Lofote5-Mar-02 14:26 
GeneralRe: Whats wrong with this? Pin
Christian Graus5-Mar-02 14:27
protectorChristian Graus5-Mar-02 14:27 
GeneralRe: Whats wrong with this? Pin
SilverShalkin5-Mar-02 14:49
SilverShalkin5-Mar-02 14:49 
GeneralRe: Whats wrong with this? Pin
Jon Sagara5-Mar-02 14:49
Jon Sagara5-Mar-02 14:49 
GeneralRe: Whats wrong with this? Pin
Rohit  Sinha5-Mar-02 15:11
Rohit  Sinha5-Mar-02 15:11 

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.