ProcessWindowStyle ProcessWindowStyle ProcessWindowStyle ProcessWindowStyle Enum

定义

指定在系统启动进程时新窗口应如何显示。Specified how a new window should appear when the system starts a process.

public enum class ProcessWindowStyle
public enum ProcessWindowStyle
type ProcessWindowStyle = 
Public Enum ProcessWindowStyle
继承
ProcessWindowStyleProcessWindowStyleProcessWindowStyleProcessWindowStyle

字段

Hidden Hidden Hidden Hidden 1

隐藏窗口样式。The hidden window style. 窗口可以采用可见或隐藏样式。A window can be either visible or hidden. 系统会通过不绘制窗口来显示隐藏的窗口。The system displays a hidden window by not drawing it. 当隐藏窗口时,实际上是将其禁用。If a window is hidden, it is effectively disabled. 隐藏的窗口可以从系统或其他窗口中处理消息,但它不能处理用户的输入,也不能显示输出。A hidden window can process messages from the system or from other windows, but it cannot process input from the user or display output. 通常,应用程序可能会在自定义窗口外观时使新窗口保持隐藏,然后再使窗口样式成为 NormalFrequently, an application may keep a new window hidden while it customizes the window's appearance, and then make the window style Normal. 要使用 HiddenUseShellExecute 属性必须为 trueTo use Hidden, the UseShellExecute property must be true.

Maximized Maximized Maximized Maximized 3

最大化窗口样式。The maximized window style. 默认情况下,系统会放大最大化窗口,使其填充整个屏幕(或者在子窗口的情况下使其填充父窗口的整个工作区)。By default, the system enlarges a maximized window so that it fills the screen or, in the case of a child window, the parent window's client area. 如果窗口具有标题栏,系统会自动将其移至屏幕的顶端或父窗口工作区的顶端。If the window has a title bar, the system automatically moves it to the top of the screen or to the top of the parent window's client area. 此外,系统会禁用窗口的可调整边框和标题栏的窗口定位功能,使用户无法通过拖动标题栏来移动窗口。Also, the system disables the window's sizing border and the window-positioning capability of the title bar so that the user cannot move the window by dragging the title bar.

Minimized Minimized Minimized Minimized 2

最小化窗口样式。The minimized window style. 默认情况下,系统会将最小化窗口缩小到任务栏按钮的大小并将最小化窗口移至任务栏上。By default, the system reduces a minimized window to the size of its taskbar button and moves the minimized window to the taskbar.

Normal Normal Normal Normal 0

正常的可见窗口样式。The normal, visible window style. 系统会在屏幕上的默认位置显示具有 Normal 样式的窗口。The system displays a window with Normal style on the screen, in a default location. 如果窗口可见,用户就可以在该窗口中提供输入并查看窗口的输出。If a window is visible, the user can supply input to the window and view the window's output. 通常,应用程序可能会在自定义窗口外观时将新窗口初始化为 Hidden 样式,然后再使窗口样式成为 NormalFrequently, an application may initialize a new window to the Hidden style while it customizes the window's appearance, and then make the window style Normal.

适用于

另请参阅