C# 클래스 SystemMenuExtension, code

Extends the system menu of a window with additional commands. Adapted from: https://github.com/dg9ngf/FieldLog/blob/master/LogSubmit/Unclassified/UI/SystemMenu.cs
파일 보기 프로젝트 열기: shendongnian/code

공개 메소드들

메소드 설명
AddCommand ( string text, Action, action, bool separatorBeforeCommand ) : void

Adds a command to the system menu.

SystemMenuExtension ( Window, window )

Initialises a new instance of the SystemMenu class for the specified Form.

비공개 메소드들

메소드 설명
AppendMenu ( IntPtr, hMenu, int uFlags, int uIDNewItem, string lpNewItem ) : bool
GetSystemMenu ( IntPtr, hWnd, bool bRevert ) : IntPtr,
WindowLoaded ( object sender, RoutedEventArgs e ) : void
WndProc ( IntPtr, hwnd, int msg, IntPtr, wParam, IntPtr, lParam, bool &handled ) : IntPtr,

메소드 상세

AddCommand() 공개 메소드

Adds a command to the system menu.
public AddCommand ( string text, Action, action, bool separatorBeforeCommand ) : void
text string The displayed command text.
action Action, The action that is executed when the user clicks on the command.
separatorBeforeCommand bool Indicates whether a separator is inserted before the command.
리턴 void

SystemMenuExtension() 공개 메소드

Initialises a new instance of the SystemMenu class for the specified Form.
public SystemMenuExtension ( Window, window )
window Window, The window for which the system menu is expanded.