User Tools

Site Tools


getmenumetric_get_menu_style_metric_value_.htm
Navigation:  Templates > Guide to all Templates > Additional Libraries and Templates > MenuStyleManager Class > MenuStyleManager Methods >====== GetMenuMetric (Get Menu Style Metric Value) ====== Previous pageReturn to chapter overviewNext page

GetMenuMetric( metricID )

blk2blue.jpg

Returns the current value of the Metric ID specified as an unsigned integer.

metricID An unsigned integer that identifies a specific metric in which the current value will be returned.

GetMenuMetric is used to return the current value of the menu metric specified by the metricID.

A menu metric is a built-in menu characteristic that is applied to all areas of a target menu. The list of metrics is shown as follows:

MenuMetric     ITEMIZE(1),PRE
cxBarLMargin     EQUATE   ! Selection Bar Left Margin
cxBarRMargin     EQUATE   ! Selection Bar Right Margin
cxItemLMargin    EQUATE   ! Menu Item Left Margin
cxItemRMargin    EQUATE   ! Menu Item Right Margin
cxImageLMargin   EQUATE   ! Menu Image Left Margin
cxImageRMargin   EQUATE   ! Menu Image Right Margin
cxTextLMargin    EQUATE   ! Menu Text Left Margin
cxTextRMargin    EQUATE   ! Menu Text Right Margin
cxKeySpace       EQUATE   ! Extra space added to accelerator key's name
cxSysMenuLMargin EQUATE   ! Extra space added to system menu icon
cxSysBarDelta    EQUATE   ! Read-only: extra space adding by Windows to menubar items
cxSubMenu        EQUATE
cxGutter         EQUATE   ! Read-only: width of gutter if any
cySeparator      EQUATE   ! Height of separator
cyItemVMargin    EQUATE   ! Extra space added above and below menu item
cySepVMargin     EQUATE   ! Extra space added above and below menu separator
              END
getmenumetric_get_menu_style_metric_value_.htm.txt · Last modified: 2021/04/15 15:57 by 127.0.0.1