次の方法で共有


NonClientView_t::DoPaint (Windows Embedded CE 6.0)

1/6/2010

This method draws the nonclient area.

Syntax

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 Value

TRUE indicates success. FALSE indicates failure.

Requirements

Header nclientview.hpp
Windows Embedded CE Windows CE .NET 4.0 and later

See Also

Reference

NonClientView_t