C# Класс SystemRestoreExplorer.SystemMenu

A class that helps to manipulate the system menu of a passed form. Written by Florian "nohero" Stinglmayr
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
AppendMenu ( int id, string item ) : bool
AppendMenu ( int id, string item, ItemFlags flags ) : bool
AppendSeparator ( ) : bool
FromForm ( Form form ) : SystemMenu
InsertMenu ( int pos, ItemFlags flags, int id, string item ) : bool
InsertMenu ( int pos, int id, string item ) : bool
InsertSeparator ( int pos ) : bool
ResetSystemMenu ( Form form ) : void
SystemMenu ( ) : System
VerifyItemID ( int id ) : bool

Приватные методы

Метод Описание
apiAppendMenu ( IntPtr hMenu, int flags, int newID, string item ) : int
apiGetSystemMenu ( IntPtr hWnd, int bReset ) : IntPtr
apiInsertMenu ( IntPtr hMenu, int position, int flags, int newId, string item ) : int

Описание методов

AppendMenu() публичный Метод

public AppendMenu ( int id, string item ) : bool
id int
item string
Результат bool

AppendMenu() публичный Метод

public AppendMenu ( int id, string item, ItemFlags flags ) : bool
id int
item string
flags ItemFlags
Результат bool

AppendSeparator() публичный Метод

public AppendSeparator ( ) : bool
Результат bool

FromForm() публичный статический Метод

public static FromForm ( Form form ) : SystemMenu
form System.Windows.Forms.Form
Результат SystemMenu

InsertMenu() публичный Метод

public InsertMenu ( int pos, ItemFlags flags, int id, string item ) : bool
pos int
flags ItemFlags
id int
item string
Результат bool

InsertMenu() публичный Метод

public InsertMenu ( int pos, int id, string item ) : bool
pos int
id int
item string
Результат bool

InsertSeparator() публичный Метод

public InsertSeparator ( int pos ) : bool
pos int
Результат bool

ResetSystemMenu() публичный статический Метод

public static ResetSystemMenu ( Form form ) : void
form System.Windows.Forms.Form
Результат void

SystemMenu() публичный Метод

public SystemMenu ( ) : System
Результат System

VerifyItemID() публичный статический Метод

public static VerifyItemID ( int id ) : bool
id int
Результат bool