NonClientView_t::WidgetRect (Windows Embedded CE 6.0)
1/6/2010
This method calculates the size of a button in the nonclient area.
Syntax
static RECT WidgetRect(
HWND hwnd,
enum WidgetId wid,
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 Value
The return value is a RECT structure that contains the bounding rectangle of the button.
Requirements
Header | nclientview.hpp |
Windows Embedded CE | Windows CE .NET 4.0 and later |