Expand Minimize
This topic has not yet been rated - Rate this topic

CreateSolidBrush (Windows Embedded Compact 7)

1/23/2013

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


HBRUSH CreateSolidBrush( 
  COLORREF crColor
); 
crColor

[in] Specifies the color of the brush.

A handle that identifies a logical brush indicates success.

NULL indicates failure.

To get extended error information, call GetLastError.

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 CreateSolidBrush, it can select that brush into any device context by calling the SelectObject function.

Windows Embedded Compact does not support dithered brushes.

When you no longer need the brush, call the DeleteObject function to delete it.

Header

windows.h

Library

coredll.lib

Did you find this helpful?
(1500 characters remaining)

Community Additions

ADD
© 2013 Microsoft. All rights reserved.