CacheView_t::SystemMetrics

This method retrieves the metrics of specific window elements.

static int SystemMetrics(
  int nIndex
);

Parameters

  • nIndex
    [in] Integer that specifies the system metric that you want to retrieve. The following table shows the possible values.
    Value Description
    SM_CXBORDER The width, in pixels, of a window border. This is equivalent to the SM_CXEDGE value for windows with the 3-D look.
    SM_CXDLGFRAME The width, in pixels, of the horizontal border around the perimeter of a window that has a title bar that cannot be resized.
    SM_CXEDGE The width, in pixels, of a 3-D border. This value is the 3-D counterpart of SM_CXBORDER.
    SM_CXHSCROLL The width, in pixels, of the arrow bitmap on a horizontal scroll bar.
    SM_CXVSCROLL The width, in pixels, of a vertical scroll bar.
    SM_CYBORDER The height, in pixels, of a window border. This value is equivalent to the SM_CYEDGE value for windows with the 3-D look.
    SM_CYCAPTION The height, in pixels, of a normal title bar area.
    SM_CYDLGFRAME The height, in pixels, of the vertical border around the perimeter of a window that has a title bar that cannot be resized.
    SM_CYEDGE The height, in pixels, of a 3-D border. This value is the 3-D counterpart of SM_CYBORDER.
    SM_CYHSCROLL The height, in pixels, of a horizontal scroll bar.
    SM_CYVSCROLL The height, in pixels, of the arrow bitmap on a vertical scroll bar.

Return Values

The return value is a height or width, in pixels, of a window element specified by the value of nIndex. Zero indicates failure.

Requirements

OS Versions: Windows CE .NET 4.0 and later.
Header: Gcacheview.hpp.

See Also

GetSystemMetrics

Last updated on Wednesday, April 13, 2005

© 2005 Microsoft Corporation. All rights reserved.