home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!spool.mu.edu!agate!stanford.edu!rutgers!concert!sas!mozart.unx.sas.com!vm.sas.com!sastph
- From: SASTPH@vm.sas.com
- Newsgroups: comp.os.ms-windows.programmer.misc
- Subject: Re: HELP with owner-draw buttons
- Message-ID: <92328.083800SASTPH@vm.sas.com>
- Date: 23 Nov 92 13:38:00 GMT
- References: <4771.921121@nasobem.stgt.sub.org>
- Organization: SAS Institute Inc.
- Lines: 16
-
- In article <4771.921121@nasobem.stgt.sub.org>, jan@nasobem.stgt.sub.org (Jan
- Schiefer) says:
- >
- >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.
-
- Why create an owerdraw button? It seems like a normal pushbutton with
- no text in it would do the trick. However, if you can't use one,
- I think all pushbuttons can be drawn the same, regardless of the driver.
- The border is always two pixels wide. You can get the colors from
- GetSysColor: COLOR_BTNFACE, COLOR_BTNSHADOW, and I believe the hightlight
- color is COLOR_WINDOW.
-