Click here to Skip to main content
15,917,709 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Application Error Pin
Christian Graus16-Dec-02 22:06
protectorChristian Graus16-Dec-02 22:06 
GeneralRe: Application Error Pin
jhwurmbach16-Dec-02 22:50
jhwurmbach16-Dec-02 22:50 
GeneralRe: Application Error Pin
Jason Henderson17-Dec-02 3:16
Jason Henderson17-Dec-02 3:16 
GeneralHard Disk Pin
Micheal John16-Dec-02 21:44
Micheal John16-Dec-02 21:44 
GeneralRe: Hard Disk Pin
Prem Kumar16-Dec-02 22:31
Prem Kumar16-Dec-02 22:31 
GeneralRe: Hard Disk Pin
Renjith Ramachandran17-Dec-02 2:04
Renjith Ramachandran17-Dec-02 2:04 
GeneralMFC messages Pin
Luke Murray16-Dec-02 21:34
Luke Murray16-Dec-02 21:34 
GeneralRe: MFC messages Pin
Prem Kumar16-Dec-02 22:23
Prem Kumar16-Dec-02 22:23 
OK, It's something like this, the Message Pumps are associated with a
thread and not a window. Inside this thread the messages are dispatched
to different windows based on the windows handles.

So your code is posting back to the same thread which does not
have a message pump (while(GetMessage(..) {...}) so what ever messages
you post will never be executed!

Now you have two options
1. Post the message to the main thread and have it executed there
by using PostThreadMessage.
2. Provide a message Pump (this will mean you will need to re-tailor
your existing thread function to use the message pump and not
the simple while)

Hope this helps..
GeneralRe: MFC messages Pin
Joaquín M López Muñoz16-Dec-02 22:35
Joaquín M López Muñoz16-Dec-02 22:35 
GeneralWindow Color Pin
pranavamhari16-Dec-02 21:09
pranavamhari16-Dec-02 21:09 
GeneralRe: Window Color Pin
Prem Kumar16-Dec-02 22:26
Prem Kumar16-Dec-02 22:26 
GeneralLocalization Pin
csylesh16-Dec-02 20:39
csylesh16-Dec-02 20:39 
GeneralRe: Localization Pin
Ted Ferenc16-Dec-02 21:37
Ted Ferenc16-Dec-02 21:37 
GeneralRe: Localization Pin
Maximilien17-Dec-02 3:17
Maximilien17-Dec-02 3:17 
Generalyahoo IM style view Pin
TSrinivasR16-Dec-02 20:29
TSrinivasR16-Dec-02 20:29 
GeneralRe: yahoo IM style view Pin
Prem Kumar16-Dec-02 22:29
Prem Kumar16-Dec-02 22:29 
GeneralRe: yahoo IM style view Pin
TSrinivasR18-Dec-02 18:22
TSrinivasR18-Dec-02 18:22 
Generalwinsock socket question Pin
thisisnotfake16-Dec-02 18:56
thisisnotfake16-Dec-02 18:56 
GeneralRe: winsock socket question Pin
Joaquín M López Muñoz16-Dec-02 19:53
Joaquín M López Muñoz16-Dec-02 19:53 
GeneralRadio Button Interactions Pin
Roger Wright16-Dec-02 18:43
professionalRoger Wright16-Dec-02 18:43 
GeneralRe: Radio Button Interactions Pin
Christian Graus16-Dec-02 20:46
protectorChristian Graus16-Dec-02 20:46 
GeneralRe: Radio Button Interactions Pin
Roger Wright17-Dec-02 4:44
professionalRoger Wright17-Dec-02 4:44 
GeneralHTTP GET Index Command :: Winsock Pin
valikac16-Dec-02 18:01
valikac16-Dec-02 18:01 
GeneralRe: HTTP GET Index Command :: Winsock Pin
Todd Smith16-Dec-02 18:39
Todd Smith16-Dec-02 18:39 
GeneralRe: HTTP GET Index Command :: Winsock Pin
valikac16-Dec-02 18:53
valikac16-Dec-02 18:53 

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.