ProcessWindowStyle 列舉

定義

指定系統啟動處理序 (Process) 時新視窗出現的方式。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
繼承
ProcessWindowStyle

欄位

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 3

最大化的視窗樣式。The maximized window style. 根據預設值,系統會將最大化視窗放大到佔滿畫面,如果是子視窗,則是放大到佔滿父視窗的工作區 (Client Area)。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. 此外,系統也會停用視窗的縮放邊框 (Sizing Border) 和標題列的視窗定位功能,使得使用者無法藉由拖曳標題列的方式移動視窗。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 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 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.

適用於

另請參閱