🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Drawing on a dialog

#2689
From: Dave Jones
Date: Mon, 11 Jan 1993 16:36
15 lines
1376 bytes
If memory serves, the dialog window is not visible when you get 
WM_INITDIALOG.  Best way to give yourself a prod to do something unusual in 
a dialog is to use the WM_INITDIALOG as a cue to arrange for another message 
to be delivered later.  I've set up WM_TIMER messages myself, and there's no
reason why you can't post yourself a WM_USER.  Try playing with WM_PAINT: 
the dialog box will get it just like any other window does, but you'll have to
be careful to coordinate with the dialog's own repaint (if it has one).

There are other strategies like placing a static control behind all the 
others and just painting that.  You would probably have to subclass it
and intercept WM_PAINT.

--
||------------------------------------------------------------------------
||Dave Jones (dj@ekcolor.ssd.kodak.com)|Eastman Kodak Co. Rochester, NY  |
Technical Details
Message-ID: <1993Jan11.163612.6273@pixel.kodak.com>
Path: arc1-ca.pugleaf.net!sparky!uunet!zaphod.mps.ohio-state.edu!howland.reston.ans.net!paladin.american.edu!gatech!rpi!newsserver.pixel.kodak.com!ekcolor!dj
References: <C0ovz8.18u@brunel.ac.uk>

Show Full Headers
Complete Article Headers
Newsgroups: comp.os.ms-windows.programmer.misc
Path: arc1-ca.pugleaf.net!sparky!uunet!zaphod.mps.ohio-state.edu!howland.reston.ans.net!paladin.american.edu!gatech!rpi!newsserver.pixel.kodak.com!ekcolor!dj
From: dj@ekcolor.ssd.kodak.com (Dave Jones)
Subject: Re: Drawing on a dialog
Message-ID: <1993Jan11.163612.6273@pixel.kodak.com>
Sender: news@pixel.kodak.com
Organization: Morituri Te Salutent, Inc.
X-Newsreader: TIN [version 1.1 PL7]
References: <C0ovz8.18u@brunel.ac.uk>
Date: Mon, 11 Jan 93 16:36:12 GMT
Lines: 15