CButtonST Class Common Interface function

Source: Internet
Author: User

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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.