Partager via


ButtonView_t::InitDC

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

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 Values

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

Requirements

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

Last updated on Wednesday, April 13, 2005

© 2005 Microsoft Corporation. All rights reserved.