![]() |
| | #1 |
| Registered User Join Date: Dec 2006
Posts: 47
| Message loop? |
| Shadowwoelf is offline | |
| | #2 |
| Registered User Join Date: Jul 2007
Posts: 36
| The message loop blocks execution (duh) so that ProcessMessage() can process the messages of the window. This involves drawing the window or windows and processing other controls. I could if I wanted create GUI system but if I want the window to stay open until it is closed I need some way of continuously drawing it and processing its messages. If there is no message loop the window will only be drawn once and its messages processed once. I think windows has too much to do to worry about processing windows. Besides, you want the window to run in the application's thread, not the systems. |
| francoissoft is offline | |
| | #3 |
| int x = *((int *) NULL); Join Date: Jul 2003 Location: Banks of the River Styx
Posts: 902
| Winprog has a page with just your question.
__________________ long time; /* know C? */ Unprecedented performance: Nothing ever ran this slow before. Any sufficiently advanced bug is indistinguishable from a feature. Real Programmers confuse Halloween and Christmas, because dec 25 == oct 31. The best way to accelerate an IBM is at 9.8 m/s/s. recursion (re - cur' - zhun) n. 1. (see recursion) |
| Cactus_Hugger is offline | |
![]() |
| Thread Tools | |
| Display Modes | |
|
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Desperate Over Ecs! | cookie | C Programming | 17 | 07-16-2008 01:25 PM |
| Window message loop (Keys) | Blackroot | Windows Programming | 3 | 09-12-2006 05:15 PM |
| Scope And Parameter Passing | djwicks | C Programming | 6 | 03-28-2005 08:26 PM |
| Help, the window gets killed...... | incognito | Game Programming | 2 | 05-28-2002 02:22 PM |