Graduation design has not finished, but my old habits again committed, for a small problem tangled up for me for a long time, but by the wind of Baidu and Google, I still can not find the answer, finally in an unexpected thinking to solve the
Windows uses a CreateWindowEx function to create a form that determines the style of the window by passing arguments to the function.
The CreateParams virtual function is a vcl called before the window is created to get the style of the window to
Interface style
If you have used windows-based applications, you may have noticed that not all user interfaces look or operate the same. There are two main types of user interface styles: Single Document Interface (SDI) and multiple Document interface (MDI). An example of an SDI interface is the WordPad (Notepad) application in Microsoft Windows (Figure 6.1). In WordPad, you can open only one document, and when you want to open another document, you
MDI Notepad ApplicationThe MDI NotePad sample application is a simple text editor similar to the NotePad application contained in MicrosoftWindows. However, the MDI NotePad application uses a multiple-document interface (MDI). At run time, the application creates a new instance of the subform if the user needs a new do
to 1. 9. Repeat step 5-8 for subsequent elements in the array. The elements of the Key menu control array must be contiguous in the Menu control list box and must be at the same indent level. When you create a menu control array, you include the separator bar that appears in the menu.
Create and modify menus at run timeMenus created at design time can also dynamically respond to run-time conditions. For example, if the action of a menu item becomes inappropriate at some point, the selection
Wm_fontchange
0x001d
This message is sent to all top-level windows when the system's font repository changes
Wm_timechange
0x001e
Send this message to all top-level windows when the system's time changes
Wm_cancelmode
0x001f
Send this message to cancel an operation that is in progress
Wm_setcursor
0x0020
will be activated and the current activity (about to lose the activation) window will receive this message, sending this message to the application which window is active, which is the inactive
Wm_fontchange
0x001d
This message is sent to all top-level windows when the system's font repository changes
Wm_timechange
0x001e
Send this message to all top-level windows when the system's time changes
0x0020
If the mouse causes the cursor to move through a window and the mouse input is not captured, send a message to the window
Wm_mouseactivate
0x0021
When the cursor is in a non-activated window and the user is pressing a key on the mouse to send this message to the current window
Wm_childactivate
0x0022
Send this message to the MDI child window when the user taps the title bar of this wind
,Wm_systemerror = 0x0017;Wm_showwindow = 0x0018;When the hidden or displayed window is sent this message to this windowWm_activateapp = 0x001c;Send this message to the application which window is active and which is inactive;Wm_fontchange = 0x001d;This message is sent to all top-level windows when the system's font repository changesWm_timechange = 0x001e;Send this message to all top-level windows when the system's time changesWm_cancelmode = 0x001f;Send this message to cancel an in-progress sta
send this message to the current windowWm_childactivate = $0022;Send this message to the MDI subwindow. When the user clicks the title bar of this window, or the window is activated, move and change the size.Wm_queuesync =$ 0023;This message is sent by a computer-based training program through the wh_journalpalyback hook ProgramSeparates user input messagesWm_getminmaxinfo =$ 0024;This message is sent to the window when it is about to change the size
is sent to a window.Wm_mouseactivate =$ 0021;When the cursor is in an inactive window and the user is pressing a key of the mouse to send this message to the current windowWm_childactivate = $0022;Send this message to the MDI subwindow. When the user clicks the title bar of this window, or the window is activated, move and change the size.Wm_queuesync =$ 0023;This message is sent by a computer-based training program through the wh_journalpalyback hoo
window in which the message is sent to the application is activated and the window in which the message is not activated;Wm_fontchange = $ 001d; send this message to all top-level windows when the font resource pool of the system changesWm_timechange = $ 001e; send this message to all top-level windows when the system time changesWm_cancelmode = $ 001f; send this message to cancel an ongoing touch (Operation)Wm_setcursor = $0020; if the mouse causes the cursor to move in a window and the mouse
this message to all top-level windows wm_endsession =0016 0017; when the system process sends the wm_queryendsession message, this message is sent to the application to notify it whether the conversation ends wm_systemerror = $; wm_showwindow = $0018; when the hidden or display window sends this message to the window wm_activateapp = $ 001c; the window to which the message is sent to the application is activated and the window is not activated; wm_fontchange = $ 001d; send this message to all t
= $ 001c;
Which window of the application is activated and which is not activated;
Wm_fontchange = $ 001d;
This message is sent to all top-level windows when the font resource library of the system changes
Wm_timechange = $ 001e;
Send this message to all top-level windows when the system time changes
Wm_cancelmode = $ 001f;
Send this message to cancel an ongoing touch (Operation)
Wm_setcursor =$ 0020;
If the mouse causes the cursor to move in a window and the mouse input is not captured, a mess
which is not activated;Wm_fontchange = $ 001d;This message is sent to all top-level windows when the font resource library of the system changesWm_timechange = $ 001e;Send this message to all top-level windows when the system time changesWm_cancelmode = $ 001f;Send this message to cancel an ongoing touch (Operation)Wm_setcursor =$ 0020;If the mouse causes the cursor to move in a window and the mouse input is not captured, a message is sent to a window.Wm_mouseactivate =$ 0021;When the cursor is
window in which the message is sent to the application is activated and the window in which the message is not activated;Wm_fontchange = $ 001d; send this message to all top-level windows when the font resource pool of the system changesWm_timechange = $ 001e; send this message to all top-level windows when the system time changesWm_cancelmode = $ 001f; send this message to cancel an ongoing touch (Operation)Wm_setcursor = $0020; if the mouse causes the cursor to move in a window and the mouse
= $0018; when the hidden or displayed window is sent to this windowWm_activateapp = $ 001c; the window in which the message is sent to the application is activated and the window in which the message is not activated;Wm_fontchange = $ 001d; send this message to all top-level windows when the font resource pool of the system changesWm_timechange = $ 001e; send this message to all top-level windows when the system time changesWm_cancelmode = $ 001f; send this message to cancel an ongoing touch (O
to the MDI subwindow. When the user clicks the title bar of this window, or the window is activated, move and change the size.
Wm_queuesync =$ 0023;
This message is sent by a computer-based training program through the wh_journalpalyback hook Program
Separates user input messages
Wm_getminmaxinfo =$ 0024;
This message is sent to the window when it is about to change the size or position;
Wm_painticon = $0026;
Send to minimize window whe
=$ 0016;
After the system process sends the wm_queryendsession message, the message is sent to the application,
Indicates whether the conversation ends.
Wm_systemerror = $0017;
Wm_showwindow =$ 0018;
This message is sent to the hidden or displayed window.
Wm_activateapp = $ 001c;
Which window of the application is activated and which is not activated;
Wm_fontchange = $ 001d;
This message is sent to all top-level windows when the font resource library of the system changes
Wm
which is not activated;Wm_fontchange = $ 001d;This message is sent to all top-level windows when the font resource library of the system changesWm_timechange = $ 001e;Send this message to all top-level windows when the system time changesWm_cancelmode = $ 001f;Send this message to cancel an ongoing touch (Operation)Wm_setcursor =$ 0020;If the mouse causes the cursor to move in a window and the mouse input is not captured, a message is sent to a window.Wm_mouseactivate =$ 0021;When the cursor is
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.