Newsgroups: comp.windows.ms.programmer
Path: funic!news.funet.fi!sunic!psinntp!psinntp!rpi!batcomputer!caen!umeecs!umn.edu!csus.edu!netcom.com!ekalenda
From: ekalenda@netcom.com (Edward J Kalenda)
Subject: Re: Help with Background
Message-ID: <1992Nov19.032707.2347@netcom.com>
Organization: Netcom - Online Communication Services  (408 241-9760 guest) 
References: <2931137881.1.p00174@psilink.com>
Date: Thu, 19 Nov 1992 03:27:07 GMT

From article <2931137881.1.p00174@psilink.com>, by "Andrew W. Buchanan" <p00174@psilink.com>:
> HELP! I'm new at windows programming and I seem to be having a little
> problem.  I'm trying to make a window that has MARBLE.BMP that comes
> with Windows as the background.  First I loaded the bitmap and then made
> a brush out of it and made it the background brush for my window class.
> Unfortunately, it only took the top-left 8x8 part of the bitmap. (The bitmap
> is roughly 200x150.  Next I tried to draw a rectangle over my client area
> using the brush as the filler, but it did the same thing. Below is what I'm
> trying... Could someone tell me what I'm doing wrong?

Read the docs. Brushes are only 8x8 pixels.

What you need to do is BitBlt the bitmap repeatidly (sp?) across and
down the client area of your window.
-- 

Ed
ekalenda@netcom.COM
