Click here to Skip to main content
15,921,660 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: NT Service problem Pin
28-Feb-02 16:02
suss28-Feb-02 16:02 
GeneralRe: NT Service problem Pin
Nish Nishant28-Feb-02 16:04
sitebuilderNish Nishant28-Feb-02 16:04 
GeneralRe: NT Service problem Pin
28-Feb-02 16:21
suss28-Feb-02 16:21 
GeneralRe: NT Service problem Pin
Nish Nishant28-Feb-02 16:28
sitebuilderNish Nishant28-Feb-02 16:28 
GeneralRe: NT Service problem Pin
Jon Hulatt28-Feb-02 23:17
Jon Hulatt28-Feb-02 23:17 
GeneralXP, ImageLists and TreeViews Pin
Simon Steele28-Feb-02 12:03
Simon Steele28-Feb-02 12:03 
GeneralRe: XP, ImageLists and TreeViews Pin
28-Feb-02 20:04
suss28-Feb-02 20:04 
GeneralRe: XP, ImageLists and TreeViews Pin
Simon Steele28-Feb-02 22:06
Simon Steele28-Feb-02 22:06 
GeneralRe: XP, ImageLists and TreeViews Pin
Shog91-Mar-02 6:13
sitebuilderShog91-Mar-02 6:13 
GeneralRe: XP, ImageLists and TreeViews Pin
Simon Steele1-Mar-02 7:12
Simon Steele1-Mar-02 7:12 
GeneralTrouble Pin
---Ranger---28-Feb-02 11:34
---Ranger---28-Feb-02 11:34 
GeneralRe: Trouble Pin
Tim Smith28-Feb-02 11:49
Tim Smith28-Feb-02 11:49 
GeneralRe: Trouble Pin
Christian Graus28-Feb-02 11:57
protectorChristian Graus28-Feb-02 11:57 
GeneralTrouble Pin
---Ranger---28-Feb-02 12:27
---Ranger---28-Feb-02 12:27 
GeneralRe: Trouble Pin
Christian Graus28-Feb-02 12:34
protectorChristian Graus28-Feb-02 12:34 
GeneralRe: Trouble Pin
alex.barylski28-Feb-02 12:49
alex.barylski28-Feb-02 12:49 
GeneralRe: Trouble Pin
28-Feb-02 12:55
suss28-Feb-02 12:55 
GeneralRe: Trouble Pin
alex.barylski28-Feb-02 12:42
alex.barylski28-Feb-02 12:42 
GeneralRe: Trouble Pin
28-Feb-02 13:01
suss28-Feb-02 13:01 
GeneralRe: Trouble Pin
28-Feb-02 13:07
suss28-Feb-02 13:07 
GeneralRe: Trouble Pin
alex.barylski28-Feb-02 13:42
alex.barylski28-Feb-02 13:42 
GeneralRe: To get mbd type try... Pin
Atul Dharne28-Feb-02 16:36
Atul Dharne28-Feb-02 16:36 
GeneralRe: Trouble Pin
Nish Nishant28-Feb-02 14:08
sitebuilderNish Nishant28-Feb-02 14:08 
Generalcreating a window from dll Pin
Tim Rymer28-Feb-02 11:26
Tim Rymer28-Feb-02 11:26 
GeneralRe: creating a window from dll Pin
Joaquín M López Muñoz28-Feb-02 12:32
Joaquín M López Muñoz28-Feb-02 12:32 
Hey, behold the authentic message pump:
// The real message pump<sup>TM</sup>.
// Use it wisely.
 
MSG msg;

while(GetMessage(&msg,NULL,0,0)!=0){
  TranslateMessage(&msg);
  DispatchMessage(&msg);
}
Jokes aside, every window created within a particular thread can only work if that thread, after window creation, gracefully decays into this message loop. GetMessage returns 0 upon calling PostQuitMessage (usually issued from the WM_DESTROY handler of the thread main window), signalling the thread to exit from the message pump (because no further message processing is required).

Joaquín M López Muñoz
Telefónica, Investigación y Desarrollo

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.