5/23/08

Explain the flow of a simple win32 based application.

1. Global Variable are created.
2. Program execution starts at Winmain()
3. Create WndProc (switch cases for different messages)
4. Creates WndClass by specify window styles, properties and WndProc.
5. Registered WndClass created previously.
6. Create Window for this win32 application and display it.
7. Start the application message loop.
8. A message queue is associated with win32 application.
8. Loop seeks for messages from messages queues associated.
9. retrieves the messages and enter into WndProc.
10. executes appropriate Message handler.

No comments:

ITUCU