Compartilhar via


NonClientView_t::WidgetRect (Windows CE 5.0)

Send Feedback

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

RECT | WidgetId

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.