NONCLIENTMETRICS

The NONCLIENTMETRICS structure contains the scalable metrics associated with the nonclient area of a nonminimized window. This structure is used by the SPI_GETNONCLIENTMETRICS and SPI_SETNONCLIENTMETRICS actions of SystemParametersInfo.

typedef struct tagNONCLIENTMETRICS { 
    UINT    cbSize; 
    int     iBorderWidth; 
    int     iScrollWidth; 
    int     iScrollHeight; 
    int     iCaptionWidth; 
    int     iCaptionHeight; 
    LOGFONT lfCaptionFont; 
    int     iSmCaptionWidth; 
    int     iSmCaptionHeight; 
    LOGFONT lfSmCaptionFont; 
    int     iMenuWidth; 
    int     iMenuHeight; 
    LOGFONT lfMenuFont; 
    LOGFONT lfStatusFont; 
    LOGFONT lfMessageFont; 
} NONCLIENTMETRICS, FAR* LPNONCLIENTMETRICS; 
 

Members

cbSize
Specifies the size of the structure, in bytes.
iBorderWidth
Specifies the thickness, in pixels, of the sizing border.
iScrollWidth
Specifies the width, in pixels, of a standard vertical scroll bar.
iScrollHeight
Specifies the height, in pixels, of a standard horizontal scroll bar.
iCaptionWidth
Specifies the width, in pixels, of caption buttons.
iCaptionHeight
Specifies the height, in pixels, of caption buttons.
lfCaptionFont
Contains information about the caption font.
iSmCaptionWidth
Specifies the width, in pixels, of small caption buttons.
iSmCaptionHeight
Specifies the height, in pixels, of small captions.
iMenuWidth
Specifies the width, in pixels, of menu-bar buttons.
iMenuHeight
Specifies the height, in pixels, of a menu bar.
lfMenuFont
Contains information about the font used in menu bars.
lfStatusFont
Contains information about the font used in status bars and tooltips.
lfMessageFont
Contains information about the font used in message boxes.

QuickInfo

  Windows NT: Requires version 3.5 or later.
  Windows: Requires Windows 95 or later.
  Windows CE: Unsupported.
  Header: Declared in winuser.h.
  Unicode: Defined as Unicode and ANSI structures.

See Also

System Information Overview, System Information Structures, SystemParametersInfo