The following are all the public member functions of the CButtonST class (the function names are sorted by sequencer):
CButtonST::D Rawborder
DWORD Drawborder (bool Bdrawborder = true, bool Brepaint = TRUE)
Comments:
Because the default display style for CButtonST is the flat button. Call this function to display a button border.
Parameters:
Bdrawborder: True to display the button border.
Brepaint: True to redraw the button immediately.
return value:
BTNST_OK: function completed.
CButtonST::D Rawflatfocus
DWORD Drawflatfocus (bool bdrawflatfocus, bool Brepaint = TRUE)
Comments:
This function is only valid for planar buttons, which can be called to display focus in a button.
Parameters:
Bdrawflatfocus: True to display focus on the flat button.
Brepaint: True to redraw the button immediately.
return value:
BTNST_OK: Indicates success of function execution.
CButtonST::D rawtransparent
void Drawtransparent (BOOL brepaint = FALSE)
Comments:
Call this function to activate transparent display mode. Note that this operation is irreversible and must be called after the button instance is created. function will keep a copy of the window background in memory, so call this function if you really need to avoid wasting your memory space. Transparent mode is typically used in windows with backgrounds.
Parameters:
Brepaint: True to redraw the button immediately.
Cbuttonst::offsetcolor
DWORD Offsetcolor (BYTE bycolorindex, short shoffset, BOOL brepaint = TRUE)
Comments:
Call this function to set the button to display the specified background color in various states. The function produces a new color value based on the offset parameter passed and the original default undertone of the button. This method makes it more natural to change the color of the buttons in different states.