home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / os / mswindo / programm / misc / 3616 < prev    next >
Encoding:
Internet Message Format  |  1992-11-23  |  1.2 KB

  1. Path: sparky!uunet!spool.mu.edu!agate!stanford.edu!rutgers!concert!sas!mozart.unx.sas.com!vm.sas.com!sastph
  2. From: SASTPH@vm.sas.com
  3. Newsgroups: comp.os.ms-windows.programmer.misc
  4. Subject: Re: HELP with owner-draw buttons
  5. Message-ID: <92328.083800SASTPH@vm.sas.com>
  6. Date: 23 Nov 92 13:38:00 GMT
  7. References: <4771.921121@nasobem.stgt.sub.org>
  8. Organization: SAS Institute Inc.
  9. Lines: 16
  10.  
  11. In article <4771.921121@nasobem.stgt.sub.org>, jan@nasobem.stgt.sub.org (Jan
  12. Schiefer) says:
  13. >
  14. >While we're on topic, how can I create a bitmap for an owner-draw button,
  15. >which looks like an normal Windows button, but is empty? The problem here
  16. >is to get the 3D effect right. I suspect this is driver dependant.
  17. >
  18. >Well, I might create an empty normal button of the same size and BitBlt its
  19. >bitmap to a memory DC, but there must be an easier way.
  20.  
  21. Why create an owerdraw button?  It seems like a normal pushbutton with
  22. no text in it would do the trick.  However, if you can't use one,
  23. I think all pushbuttons can be drawn the same, regardless of the driver.
  24. The border is always two pixels wide.  You can get the colors from
  25. GetSysColor: COLOR_BTNFACE, COLOR_BTNSHADOW, and I believe the hightlight
  26. color is COLOR_WINDOW.
  27.