Read windows programming (5)

Source: Internet
Author: User

"Although Windows provides a powerful graphical device interface (GDI) function for graphic display, I will only introduce the display of simple text lines in this chapter. I will also ignore the different font shapes and sizes that Windows can use, and only use the built-in font of windows. This seems to be a limitation. Otherwise, the problems involved and solved in this Chapter apply to all windowsProgramDesign. When text and graphics are mixed, the character size of the font in Windows usually determines the size of the image ."

"In the text mode, the program can output any part of the display, and the content output to the screen will stay in the original place and will not disappear mysteriously. Therefore, the program can discard the information required to regenerate the screen display.

In Windows, you can only draw text and graphics in the display area of the window, in addition, it cannot be ensured that the content displayed in the display area is retained until the program intentionally modifies the content. For example, a user may move another program window on the screen, which may overwrite a portion of your application window. Windows does not save the area covered by other programs in your window. When the program is removed, Windows will require your program to update the display area.

Windows is a message-driven system. It notifies the application of various events by putting messages in the application message queue or sending messages to the appropriate window message processing program. Windows sends the wm_paint Message notification window message handler, and some display areas of the window need to be drawn ."

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.