Onsyscommand number ncmdshow Value

Source: Internet
Author: User

The value of the ncmdshow parameter can be any of the following constants:

Sw_hide: hides a window, and the activity status gives it a window;

Sw_minimize: minimizes the window, and the activity status is given to another window;

Sw_restore: displays a window with the original size and position, and enables it to enter the active status;

Sw_show: displays a window with the current size and position, and enables it to enter the active state;

Sw_showmaximized: Maximize the window and activate it;

Sw_showminimized: minimizes the window and activates it;

Sw_showminnoactive: minimizes a window without changing the activity window;

Sw_showna: displays a window with the current size and position without changing the activity window;

Sw_shownoactivate: displays a window with the nearest size and position without changing the activity window;

Sw_shownormal: Same as sw_restore;

Finally, do not forget to use the cwnd: setforegroundwindow () function to set the pop-up window as the front-end of the desktop.

 

// Recently, you have released the following NID during use:

Condition:

In the main dialog box, you cannot double-click the title bar to change the window size because the control is dynamically generated and the position is adjusted, and the maximization and reset are responded;

After the experiment, we learned that:

If (/* (nid = 0x0000f012) | */(nid = 0x0000f122) | (nid = 0x0000f032 ))
{
Return;
.

Nid = 0x0000f122 the user double-clicked the title bar when the window was maximized;

Nid = 0x0000f032 the user double-clicked the title bar when the window is not maximized;

Nid = 0x0000f012 the user clicks the title bar when the window is not maximized. If the response returns, you cannot move the window by pulling the title bar when the window is not maximized.

 

The above three NIDs have been tested and are not strictly tested. If any error is found, please leave a message to correct them.

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.