Skip to content

Latest commit

 

History

History
54 lines (37 loc) · 1.56 KB

File metadata and controls

54 lines (37 loc) · 1.56 KB

Home

Function name : CreateSolidBrush

Group: Brush - Library: gdi32


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


Code examples:

How to put a horizontal text scrolling on the form (a news line, marquee)
How to put a vertical text scrolling on the form (a movie cast)
Subclassing CommandButton control to create BackColor property
Vertical Label control
How to make a VFP form fading out when released (GDI version)
Displaying dimmed window behind VFP top-level form

Declaration:

HBRUSH CreateSolidBrush(
  COLORREF crColor   // brush color value
);  

FoxPro declaration:

DECLARE INTEGER CreateSolidBrush IN gdi32;
	LONG crColor  

Parameters:

crColor [in] Specifies the color of the brush. To create a COLORREF color value, use the RGB macro.


Return value:

If the function succeeds, the return value identifies a logical brush.


Comments:

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.