NonClientView_t::WidgetRect (Windows CE 5.0)
This method calculates the size of a button in the nonclient area.
static RECT WidgetRect(HWND hwnd,enum WidgetIdwid,bool bTopLevelWindow);
Parameters
- hwnd
[in] Handle to the window control. - wid
[in] Value from the WidgetId enumeration that specifies the index value for the button for which you want to calculate the size. The following table shows the possible values.Value Description widClose A Close(X) button. widHelp A Help button. widInvalid An invalid identifier. widMaxRestore A Maximize button. widMin A Minimize button. widOk An OK button. - bTopLevelWindow
[in] Boolean that specifies whether the window is a top-level window. TRUE indicates that the window is a top-level window. FALSE indicates that the window is not a top-level window.
Return Values
The return value is a RECT structure that contains the bounding rectangle of the button.
Requirements
OS Versions: Windows CE .NET 4.0 and later.
Header: Nclientview.hpp.
See Also
Send Feedback on this topic to the authors