Share via


HeaderView_t::CalcOffset

Other versions of this page are also available for the following:

Windows Mobile Not SupportedWindows Embedded CE Supported

8/28/2008

This method calculates an offset that is used to determine where to draw the header bitmap and text.

Syntax

static void CalcOffset(
  int cxBorder,
  int cyBorder,
  int* pxOffset,
  int* pyOffset
);

Parameters

  • cxBorder
    [in] Integer that specifies the width, in pixels, of the vertical border of the header control. You can obtain this value by calling the GetSystemMetrics function with the SM_CXBORDER flag.
  • cyBorder
    [in] Integer that specifies the height, in pixels, of the horizontal border of the header control. You can obtain this value by calling GetSystemMetrics with the SM_CYBORDER flag.
  • pxOffset
    [out] Pointer to an integer that receives the x-coordinate offset. Increasing this offset value places the text or bitmap farther to the right.
  • pyOffset
    [out] Pointer to an integer that receives the y-coordinate offset. Increasing this offset value places the text or bitmap lower.

Return Value

None.

Requirements

Header headerview.hpp
Windows Embedded CE Windows CE .NET 4.0 and later

See Also

Reference

HeaderView_t
GetSystemMetrics