次の方法で共有


Gdi::CreateSolidBrush_I (Windows Embedded CE 6.0)

1/6/2010

This method creates a logical brush that has the specified solid color.

Syntax

static WINGDIAPI HBRUSH WINAPI CreateSolidBrush_I(
  COLORREF crColor
);

Parameters

  • crColor
    [in] COLORREF value that specifies the color of the brush.

Return Value

A handle that identifies a logical brush indicates success.

NULL indicates failure.

To get extended error information, call GetLastError.

Remarks

This method is an internal version of the CreateSolidBrush method.

A solid brush is a bitmap that the system uses to paint the interiors of filled shapes.

After an application creates a brush by calling Gdi::CreateSolidBrush_I, the application can select that brush into any device context by calling the Gdi::SelectObject_I method.

Windows Embedded CE does not support dithered brushes.

Requirements

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

See Also

Reference

Gdi
CreateSolidBrush
Gdi::SelectObject_I