home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / os / mswindo / programm / misc / 4813 < prev    next >
Encoding:
Text File  |  1993-01-10  |  1.2 KB  |  33 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: Drawing Borland OWNERDRAW button faces...
  5. Message-ID: <2B50DAA1.53C8@tct.com>
  6. Date: Mon, 11 Jan 1993 02:25:37 GMT
  7. Organization: TC Telemanagement, Clearwater, FL
  8. Lines: 23
  9.  
  10. I am trying to respond to the WM_DRAWITEM message for Borland OWNERDRAW 
  11. buttons.  I have the following questions:
  12.  
  13. 1)  How do I tell if the button is pushed or not?  I need to know this to
  14.     redraw the button face pushed or not.  lpdis->itemAction and 
  15.     lpdis->itemState do not seem to give this information.
  16.     
  17. 2)  How can I draw text to the face of the button in either black or dark 
  18.     gray AND a light gray background within the text?  I would like to use
  19.     something with the power of DrawText () so I can horizontally and 
  20.     vertically center the text on the button.  I can draw black text on a 
  21.     white background, but this looks funky on a gray button face.
  22.     
  23. 3)  How do I tell if the button is ENABLED or not?  I would like to draw gray
  24.     text (see #2) if the button is disabled.
  25.             
  26. Speed is of the essence! 
  27.     
  28. Thank you for your support,
  29.  
  30. jeff@tct.com
  31.     
  32.    
  33.