C # Beginner notes (Basic concepts of Windows programming)

Source: Internet
Author: User

    1. Basic concepts of Windows programming

HCI (Human-computer interface), also known as user interface UI (users interface), is an important part of computer system, which is the medium and interface of communication and exchanging information between human and computer. Because most applications are user-interface-based, interface programming is one of the core programming of software development.

The design of the user interface is related to the operating system platform, the operating system interface generally has two kinds:

(1) CLI (command line user interface), such as DOS;

(2) Graphical user interface Gui (graphical user interface), such as Windows

(3) Command line interface is mainly used in system management, remote maintenance, language processing and other system software, so the command line interface is also known as the console interface.

The graphical user interface is a human-machine interface widely used by the operating system. Human-machine operation is characterized by graphical display and interactive graphics, compared to the command line interface, the graphical user interface is more visually acceptable to users, easier to operate

A prominent feature of Windows applications is that it has an aesthetically pleasing graphical user interface-the window. The window can contain title bars, menus, toolbars, status bars, scroll bars, and so on, and the dialog box contains different types of child controls, facilitating user-to-application interface programming of Windows applications, which is a window program designed to meet the requirements. Simple Windows applications have only one window, while complex Windows applications have multiple windows.

    1. News

The command line interface program is a procedural graphical user interface program that is event-driven, that is, after the program starts and creates a program window, it enters a wait state (called a message loop) until an event (called a message) is received, such as keyboard input, mouse click, and so on. The program handles the event in a out-of-wait state (called a message processing or response Windows system establishes a message queue for each application queues). If an event occurs during the run of the program, Windows will send the message corresponding to the event into the message queue for use. The application obtains the message from the message queue and forms a message loop that can continuously get the message from the message queue. message), the processing completes and then enters the wait state the Windows system finds the program window that should receive the message based on the information passed in the message and invokes the corresponding event procedure for the form. Once processing is complete, the message is immediately returned to the message loop as long as it is not terminating the application message, waiting for the next message to be obtained. This is how Windows applications cycle through the message loop until the message that terminates the application is issued.

C # Beginner notes (Basic concepts of Windows programming)

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.