CompuServe Messages

#How to Wallpaper?

    23-Feb-95 00:40:45
Fm: John Toebes/SYSOP 70007,3467
To: Steve Ahlstrom 76703,2006
You mean in your program code, or in Windows? To my knowledge, you can't in Windows; you can only have a bitmap for the desktop background. In your own program you do something like: char szAppName[] = "MyWindow"; (this is in WinMain) HBITMAP hBitmap; HBRUSH hBrush; WNDCLASS wndclass; hBitmap = LoadBitmap(hInstance, szAppName); hBrush = CreatePatternBrush(hBitmap); .. then, when filling out the Window class structure: wndclass.hbrBackground = hBrush; assuming that the bitmap is A) in a resource script, and B) has the same label as szAppName. Do you have Petzold's "Programming Windows" btw? very handy.