This chapter describes the framework structure of Windows applications:
The wndclas class is actually used to describe the information of the window to be created, including the name of the window category and the message processing function corresponding to the window.
Then, use registerclass (& wndclass) to register the window. Actually, tell the operating system that you want to create a window ~
Next, createwindow (...) Is to create a real window and display the window in showwindow () through the returned handle.
Updatewindow () and new window. Next, enter the message loop:
1. getmessage () obtains messages from the operating system,
2. Analyze the message through translatemessage (), and then
3. Use the dispatchmessage () function to send messages to message processing functions in different windows.
1 ~ 3. This process is infinite until the program exits.
Next chapterThe output text uses how to output text in a window as an example to explain the entire process above. This process is a general program design process. Figuring out this process is the basis for learning to write programs.