🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.os.ms-windows.programmer.misc
Article #2667

Drawing Borland OWNERDRAW button faces...

#2667
From: Jeff Witzer
Date: Mon, 11 Jan 1993 02:25
23 lines
1248 bytes
I am trying to respond to the WM_DRAWITEM message for Borland OWNERDRAW 
buttons.  I have the following questions:

1)  How do I tell if the button is pushed or not?  I need to know this to
    redraw the button face pushed or not.  lpdis->itemAction and 
    lpdis->itemState do not seem to give this information.
    
2)  How can I draw text to the face of the button in either black or dark 
    gray AND a light gray background within the text?  I would like to use
    something with the power of DrawText () so I can horizontally and 
    vertically center the text on the button.  I can draw black text on a 
    white background, but this looks funky on a gray button face.
    
3)  How do I tell if the button is ENABLED or not?  I would like to draw gray
    text (see #2) if the button is disabled.
    	    
Speed is of the essence! 
    
Thank you for your support,

jeff@tct.com
    
   
Technical Details
Message-ID: <2B50DAA1.53C8@tct.com>
Path: arc1-ca.pugleaf.net!sparky!uunet!sybus.sybus.com!myrddin!tct!jeff

Show Full Headers
Complete Article Headers
Newsgroups: comp.os.ms-windows.programmer.misc
Path: arc1-ca.pugleaf.net!sparky!uunet!sybus.sybus.com!myrddin!tct!jeff
From: jeff@tct.com (Jeff Witzer)
Subject: Drawing Borland OWNERDRAW button faces...
Message-ID: <2B50DAA1.53C8@tct.com>
Date: Mon, 11 Jan 1993 02:25:37 GMT
Organization: TC Telemanagement, Clearwater, FL
Lines: 23