Hello all. I attempting to implement a "self-drawn" button SWOOP class.
Currently, when a button is defined with the BS_OWNERDRAW style, the
button's owner receives a WM_DRAWITEM message when various parts of the
button need to be drawn. This places the burden of drawing the button
on the owner. I want the button to "draw itself" - for example, the
button could display an icon or have an alternate color scheme.
I believe the following technique is common in C programs:
Given a super-classed button (named "mybutton"), one "reflects" the
WM_DRAWITEM message back to the "mybutton" window where the "mybutton"
procedure would process the WM_DRAWITEM message and then draw itself.
The "mybutton" class contains objects which define the drawing
attributes - i.e. text color, icon handle, etc.
I'm having trouble understanding the DERRIVEDWINDOW class. It appears
it may be the tool I'm looking for. Does anyone have examples of the
DERRIVEDWINDOW class?
Best Regards, Mike Ghan mikeghan_at_logix-controls.com
Logix Industrial Control Systems http://www.logix-controls.com
10518 NE 68th St
Kirkland, WA 98033 USA
(425)828-4149 (425)828-9682 Fax
----------------------------------------------------------------------
sftalk_at_forth.com The SwiftForth programming discussion email list
To unsubscribe, send subject "unsubscribe sftalk" to listar_at_forth.com
For help with listar commands, send subject "help" to listar_at_forth.com
Archives are located at http://www.forth.com/sftalk -- check them out!
Received on Tue May 01 2001 - 18:47:51 PDT
Subscribe to our e-mail list service. It's free for all SwiftForth and SwiftX users!
This archive was generated 06-Feb-2012. Archive updated nightly.