LOGBRUSH構造体を定義して論理ブラシを作成する
Declare Function CreateBrushIndirect Lib "gdi32.dll" _
(lplb As LOGBRUSH) As Long
Declare Function CreateBrushIndirect Lib "gdi32.dll" _
(lplb As LOGBRUSH) As Integer
HBRUSH CreateBrushIndirect(
CONST LOGBRUSH *lplb
);
次のいずれか System.Drawing.Brushes System.Drawing.SolidBrush System.Drawing.TextureBrush System.Drawing.Drawing2D.HatchBrush System.Drawing.Drawing2D.LinearGradientBrush System.Drawing.Drawing2D.PathGradientBrush
ブラシを定義するLOGBRUSH構造体戻り値
正常終了のとき ブラシのハンドル備考
エラーのとき 0
ブラシのカラーはフォアグラウンドカラーである。
バックグラウンドカラーを設定する場合はSetBkMode()関数とSetBkColor()関数を使用する。