🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.os.ms-windows.programmer.misc
Article #2746

Re: Drawing on a dialog

#2746
From: Chris Marriott
Date: Tue, 12 Jan 1993 19:33
22 lines
1479 bytes
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     |
--------------------------------------------------------------------------
 
Technical Details
Message-ID: <726867187snz@chrism.demon.co.uk>
Path: arc1-ca.pugleaf.net!sparky!uunet!pipex!demon!chrism.demon.co.uk!chris
References: <93011.164426SASTPH@vm.sas.com>

Show Full Headers
Complete Article Headers
Newsgroups: comp.os.ms-windows.programmer.misc
From: chris@chrism.demon.co.uk (Chris Marriott)
Path: arc1-ca.pugleaf.net!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