Yes! This class is included in the latest SoftechSoftware DLL version. |
CBlendedButtonST is a CButtonST-derived class that adds blended (semi-transparent) background to your buttons !
Main CBlendedButtonST features are:
In your project include the following files:
CBlendedButtonST m_btnTest;Now attach the control to CBlendedButtonST. For dialog-based applications, in your OnInitDialog:
// Call the base-class method CDialog::OnInitDialog(); // Create the IDC_BTNTEST control m_btnTest.SubclassDlgItem(IDC_BTNTEST, this);Or in your DoDataExchange:
// Call the base method CDialog::DoDataExchange(pDX); // Create the IDC_BTNTEST control DDX_Control(pDX, IDC_BTNTEST, m_btnTest);Attention!
// Create the IDC_BTNTEST control (...) // Set background color m_btnTest.SetBackgroundColor(RGB(69, 162, 54), FALSE); // Set opacity percentage to 50% m_btnTest.SetOpacityPercentage(50, FALSE); // Set transparent mode m_btnTest.DrawTransparent();
SetBackgroundColor
Sets the control's background color.
// Parameters: // [IN] crBackgroundColor // A COLORREF value indicating the new control's background. // [IN] bRepaint // If TRUE the control will be immediately repainted. // // Return value: // BTNST_OK // Function executed successfully. // DWORD SetBackgroundColor(COLORREF crBackgroundColor, BOOL bRepaint = TRUE)SetBorderColors
// Parameters: // [IN] crBorderTopLeft // A COLORREF value indicating the color of the top and left sides of control's border. // [IN] crBorderBottomRight // A COLORREF value indicating the color of the bottom and right sides of control's border. // [IN] bRepaint // If TRUE the control will be immediately repainted. // // Return value: // BTNST_OK // Function executed successfully. // DWORD SetBorderColors(COLORREF crBorderTopLeft, COLORREF crBorderBottomRight, BOOL bRepaint = TRUE)SetOpacityPercentage
// Parameters: // [IN] byPercentage // Percentage (from 0 to 100) // 0 = Full transparency // 100 = Full opacity // [IN] bRepaint // If TRUE the control will be immediately repainted. // // Return value: // BTNST_OK // Function executed successfully. // DWORD SetOpacityPercentage(BYTE byPercentage, BOOL bRepaint = TRUE)GetVersionI
// Return value: // Class version. Divide by 10 to get actual version. // static short GetVersionI()GetVersionC
// Return value: // Pointer to a null-terminated string containig the class version. // static LPCTSTR GetVersionC()
The software and the accompanying files are distributed "AS IS" and without any warranties whether expressed or implied.
No responsibilities for possible damages or even functionality can be taken.
The user must assume the entire risk of using this software.
The sample application and the source codes (where available) are for demostration purposes only. You are not allowed to
use the demo source codes, libraries and DLLs in any of your application. If you like this software you must buy
the full version.
Downloading anything from this site means you accept the above terms.