Compartir a través de


CacheView_t::SystemMetrics (Windows CE 5.0)

Send Feedback

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_CXICON The default width, in pixels, of an icon.
    SM_CXICONSPACING The width, in pixels, of a grid cell for items in large icon view. Each item fits into a rectangle of this size when it is arranged. These values are always greater than or equal to SM_CXICON and SM_CYICON.
    SM_CXSMICON The recommended width, in pixels, of a small icon. Small icons typically appear in window captions and in small icon view.
    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_CYICON The default height, in pixels, of an icon.
    SM_CYICONSPACING The height, in pixels, of a grid cell for items in large icon view. Each item fits into a rectangle of this size when it is arranged. These values are always greater than or equal to SM_CXICON and SM_CYICON.
    SM_CYSMICON The recommended height, in pixels, of a small icon. Small icons typically appear in window captions and in small icon view.
    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.

Remarks

CacheView_t::SystemMetrics supports window elements SM_CXICON, SM_CYICON, SM_CXICONSPACING, SM_CYICONSPACING, SM_CXSMICON, SM_CYSMICON in Windows CE 5.0 and not earlier versions.

Requirements

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

See Also

GetSystemMetrics

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.