NonClientView_t::DoPaint (Windows CE 5.0)

Send Feedback

This method draws the nonclient area.

static BOOL DoPaint(HWND hwnd,HRGN hrgn,UINT32 WindowState,bool bTopLevelWindow,bool bIsRestorable);

Parameters

  • hwnd
    [in] Handle to the window control.
  • hrgn
    [in] Handle to the region that you want to update.
  • WindowState
    [in] Unsigned 32-bit integer that specifies the state of the nonclient area. The following table shows the possible values.
    Value Description
    WF_NC_DISABLE_CLOSE The Close(X) button for the window is unavailable.
    WF_NC_SBH_PRESENT The window contains a horizontal scroll bar.
    WF_NC_SBV_PRESENT The window contains a vertical scroll bar.
    WF_NC_SBV_SCROLLING The window contains a vertical nonclient scroll bar.
    WF_SBH_DISABLED The horizontal scroll bar for the window appears dimmed.
    WF_SBV_DISABLED The vertical scroll bar for the window appears dimmed.
  • 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.
  • bIsRestorable
    [in] Boolean that specifies whether you want to allow the size of the window to be restored. TRUE indicates that the window can be restored. FALSE indicates that the window cannot be restored. The default implementation of this method uses this value to determine how to draw the title bar of the window. In the default implementation, DFCS_CAPTIONRESTORE draws a Restore button on the title bar, and DFCS_CAPTIONMAX draws a Maximize button on the title bar.

Return Values

TRUE indicates success. FALSE indicates failure.

Requirements

OS Versions: Windows CE .NET 4.0 and later.
Header: Nclientview.hpp.

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.