Methods | Description |
HookWnd |
Attaches the interface to a window that has menus to be overridden.
|
UnHookWnd |
Detaches the interface from the currently attached window.
|
Override |
Overrides a menu item to be ownerdrawn.
|
OverrideMenu |
Overrides a menu item to be ownerdrawn. It can access a menu item whether by using its command ID,
or a menu item position with up to level 10 of the menu.
|
OverrideSys |
Overrides a system menu item to be ownerdrawn. It can access a menu item whether by using its command ID,
or a menu item position with up to level 4 of the menu.
|
DrawItemBackground |
Draws background of a menu item using windows standard palette for menus. When bXPSelection is True
it draws menu item background using the XP style.
|
DrawItemBackgroundEx |
Draws background of a menu item using margins and windows standard palette for menus. When bXPSelection is True
it draws menu item background using the XP style.
|
DrawMenuBar |
Redraws menu bar of the hooked window.
|
ResetPalette |
Restores values for bgColor and selColor with values taken from the Windows current system palette.
|
Properties | Description |
bgColor |
Menu background color. By default it is set to the menu background color taken from the system palette.
|
selColor |
Menu item color when it is selected. By default it is set to the item selection color taken from the system palette.
|
capColor
|
Background color for unselected menu items in the menu caption bar. By default it is set to the system's face color of 3D objects.
|
hWnd
|
Handle of the attached window, or NULL, if no window was attached.
|
WindowTransparency
|
Transparency level (0..255) of the hooked window.
|
MenuTransparency
|
Transparency level (0..255) of all menus processed by the hooked window.
|
sysFadedMenus
|
Contains True when in the system was set up fading effect for all menus, and then it is recommended not to use property MenuTransparency.
|
Events | Description |
OnMenuInit
|
Notifies the client about displaying a menu.
|
OnMenuDone
|
Notifies the client about closing a pop-up menu. hMenu - handle of the menu being closed.
|
OnMeasureItem
|
Asks the client to return dimensions of a menu item through parameters Width and Height.
|
OnDrawItem
|
Notifies the client when it is time to draw a menu item.
|
OnMenuSelect
|
Notifies the client about selecting a menu item.
|
OnSettingsChanged
|
Notifies the client about changing visual settings in the system - font or color palette.
|
OnContextMenu
|
Notifies the client when it can display a context menu for the hooked window.
|
OnDrawMenuBarExtender
|
Notifies the client when it is time to draw the menu bar extender.
|