home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #30 / NN_1992_30.iso / spool / comp / os / mswindo / programm / misc / 4353 < prev    next >
Encoding:
Text File  |  1992-12-21  |  1.0 KB  |  27 lines

  1. Newsgroups: comp.os.ms-windows.programmer.misc
  2. Path: sparky!uunet!sybus.sybus.com!myrddin!tct!jeff
  3. From: jeff@tct.com (Jeff Witzer)
  4. Subject: Dynamic Drawing to Button Faces
  5. Message-ID: <2B31FA06.954E@tct.com>
  6. Date: Fri, 18 Dec 1992 16:19:17 GMT
  7. Organization: TC Telemanagement, Clearwater, FL
  8. Lines: 17
  9.  
  10. [Sorry if this is a repost, I think the first attempt failed...]
  11.  
  12. Here's one I haven't seen on the net, yet:
  13.  
  14. I would like to be able to draw a pie chart and/or a bar chart (user picks
  15. which one to do so I have to know both)...on the face of a button.  I'm
  16. using Borland style buttons, BC 3.0, and Win 3.1.  I've been using the
  17. BBS_SETBITS message to change button appearance on the fly (for the three
  18. button states: norm, push, focus) with 3 item bitmap arrays, but have only
  19. done this with static bitmaps drawn in Resource Workshop.  How can I use
  20. drawing commands from within the code to create these bitmaps (or just 
  21. display straight on the button face) so that I can still have all 3 states?
  22.  
  23. thanks,
  24.  
  25. jeff@tct.com
  26.  
  27.