🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: HELP with owner-draw buttons

#2192
From: Jan Schiefer
Date: Sat, 21 Nov 1992 00:19
20 lines
1259 bytes
twbrown@PE-Nelson.COM (Tom W. Brown) wrote:
> The owner of the button responds to the WM_MEASUREITEM message to tell
> Windows how big the button is and responds to WM_DRAWITEM messages to paint
> the button -- you can do anything you wish to display the button, make it
> clear, any color, put text in it, etc.

While we're on topic, how can I create a bitmap for an owner-draw button,
which looks like an normal Windows button, but is empty? The problem here
is to get the 3D effect right. I suspect this is driver dependant.

Well, I might create an empty normal button of the same size and BitBlt its
bitmap to a memory DC, but there must be an easier way.

I guess everyone must have had this problem!?!

Jan

--
             Jan Schiefer, DL5UE, jan@nasobem.stgt.sub.org
                 "Oracle et laboracle!"   - Fritz Hohl
Technical Details
Message-ID: <4771.921121@nasobem.stgt.sub.org>
Path: arc1-ca.pugleaf.net!sparky!uunet!europa.asd.contel.com!emory!swrinde!zaphod.mps.ohio-state.edu!sol.ctr.columbia.edu!ira.uka.de!smurf.sub.org!nadia!delos!nasobem!jan

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!europa.asd.contel.com!emory!swrinde!zaphod.mps.ohio-state.edu!sol.ctr.columbia.edu!ira.uka.de!smurf.sub.org!nadia!delos!nasobem!jan
From: jan@nasobem.stgt.sub.org (Jan Schiefer)
Newsgroups: comp.os.ms-windows.programmer.misc
Subject: Re: HELP with owner-draw buttons
Message-ID: <4771.921121@nasobem.stgt.sub.org>
Date: Sat, 21 Nov 92 0:19:31 GMT
Distribution: world
Lines:  20