Share via


ButtonView_t::InitDC

Other versions of this page are also available for the following:

Windows Mobile Not SupportedWindows Embedded CE Supported

8/28/2008

This method sets up a device context for drawing a button.

Syntax

static HBRUSH InitDC(
  HWND hwnd,
  HDC hdc
);

Parameters

  • hwnd
    [in] Handle to a window.
  • hdc
    [in] Handle to the device context that you want to initialize.

Return Value

The return value is a handle to the control brush for the button.

Requirements

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