I need to know how to asign a bitmap as the background in a WNDCLASS
I tries using a brush, but I don't think I did it correctly. I don't remember exactly what I did but it was along the lines of
Code:
HANDLE hImage=LoadImage(NULL, "image.bmp",IMAGE_BITMAP, 0,0,LOADFROMFILE);
LOGBRUSH MyBrush;
MyBrush.lbStyle=BS_DIBPATTERN;
MyBrush.lbHatch=CreateDIBSection(&hImage);
HBRUSH hMyBrush=CreateBrushIndirect(&MyBrush);
.
.
.
wc.hbrBackground= MyBrush;
any help on why this is wrong or any other techniques would be appreciated. I would have given you the actual code, except it's HIGHLY classified (it's on my laptop right now, and I'm to lazy to get it). maybe when I finish eh? I's actualy quite nifty!