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

  1. Path: 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
  2. From: jan@nasobem.stgt.sub.org (Jan Schiefer)
  3. Newsgroups: comp.os.ms-windows.programmer.misc
  4. Subject: Re: HELP with owner-draw buttons
  5. Message-ID: <4771.921121@nasobem.stgt.sub.org>
  6. Date: Sat, 21 Nov 92 0:19:31 GMT
  7. Distribution: world
  8. Lines:  20
  9.  
  10. twbrown@PE-Nelson.COM (Tom W. Brown) wrote:
  11. > The owner of the button responds to the WM_MEASUREITEM message to tell
  12. > Windows how big the button is and responds to WM_DRAWITEM messages to paint
  13. > the button -- you can do anything you wish to display the button, make it
  14. > clear, any color, put text in it, etc.
  15.  
  16. While we're on topic, how can I create a bitmap for an owner-draw button,
  17. which looks like an normal Windows button, but is empty? The problem here
  18. is to get the 3D effect right. I suspect this is driver dependant.
  19.  
  20. Well, I might create an empty normal button of the same size and BitBlt its
  21. bitmap to a memory DC, but there must be an easier way.
  22.  
  23. I guess everyone must have had this problem!?!
  24.  
  25. Jan
  26.  
  27. --
  28.              Jan Schiefer, DL5UE, jan@nasobem.stgt.sub.org
  29.                  "Oracle et laboracle!"   - Fritz Hohl
  30.