I need to use 24-bit bitmap to create a background brush. When I do so via CreateBrushIndirect (lbHatch set to the bmp handle, lbStyle set to BS_PATTERN), it actually works well on Win2000.
Under Win98 and WinME, the brush isn't properly created; it returns a white brush without any pattern unless I change the bitmap to an 8-bit one.
PSDK doesn't say anything about it. :(
How could I use 24-bit bitmap as brush, then? Thanks...
Posted on 2003-02-25 05:39:16 by C.Z.
Donkey: It's 1x4, loaded with LoadBitmap. Both LoadBitmap and CreateBrushIndirect return nonzero value. :eek:
Posted on 2003-02-25 06:06:36 by C.Z.
I figured it out, it has to be 8x8 on Win98/ME. Dame SDK.
Posted on 2003-02-25 07:18:51 by C.Z.