home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.os.ms-windows.programmer.misc
- From: chris@chrism.demon.co.uk (Chris Marriott)
- Path: sparky!uunet!pipex!demon!chrism.demon.co.uk!chris
- Subject: Re: Drawing on a dialog
- Distribution: world
- References: <93011.164426SASTPH@vm.sas.com>
- Organization: None
- Reply-To: chris@chrism.demon.co.uk
- X-Mailer: Simple NEWS 1.90 (ka9q DIS 1.19)
- Lines: 22
- Date: Tue, 12 Jan 1993 19:33:07 +0000
- Message-ID: <726867187snz@chrism.demon.co.uk>
- Sender: usenet@demon.co.uk
-
- In article <93011.164426SASTPH@vm.sas.com> SASTPH@vm.sas.com writes:
-
- >You almost had it. Put a static (WHITEFRAME) text box the size of your
- >bitmap on the dialog box. Subclass it. When your the proc for the text
- >box gets a WM_PAINT msg, blit the bitmap onto the static box. Voila!
- >
- >Hope this helps!
- >
-
- There's no need to subclass the control at all! Simply respond to WM_PAINT
- messages received by the dialog proc, then call "ValidateRect" for the
- control to stop Windows from painting it white again.
-
- Chris
- --
- --------------------------------------------------------------------------
- | Chris Marriott | chris@chrism.demon.co.uk |
- | Warrington, UK | BIX: cmarriott |
- | (Still awaiting inspiration | CIX: cmarriott |
- | for a witty .sig .... ) | CompuServe: 100113,1140 |
- --------------------------------------------------------------------------
-
-