Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
This method calculates an offset that is used to determine where to draw the header bitmap and text.
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 Values
None.
Requirements
OS Versions: Windows CE .NET 4.0 and later.
Header: Headerview.hpp.
See Also
HeaderView_t | GetSystemMetrics
Send Feedback on this topic to the authors