WinExec parameter Description

Source: Internet
Author: User

Original: http://www.cnblogs.com/zhwl/archive/2012/12/08/2808675.html

The second parameter is the way the main window of the control program is displayed, and the possible values are:

Sw_hide//Hide main window after program startup
Sw_maximize//Maximize operation
Sw_minimize//Minimized operation
Sw_restore//Restores the maximized or minimized window to normal
Sw_show//Show main window at current position and size
sw_showmaximized//Activates the window and maximizes the operation
sw_showminimized//Activate the window and run it minimized
Sw_showminnoactive//minimized operation, but not activated
Sw_shownoactivate//above the window size runs, but does not activate
SW_SHOWNORMAL//Normal mode, general operation using this


In general, the second parameter takes Sw_shownormal, so that is no parameter run One.exe
WinExec ("One.exe", SW_SHOWNORMAL); the second parameter is just the parameter of the WinExec function, not the One.exe parameter.

WinExec parameter Description

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.