CWinXPButtonST






4.89/5 (5 votes)
Sep 7, 2001

172011

3014
A CButtonST derived class that emulates Office/Windows XP buttons
Abstract
CWinXPButtonST
is a CButtonST
derived class that emulates the look'n'feel of the buttons (or menu items) found in Office XP and, maybe, in
Windows XP. Button borders can have square or rounded corners.
This is just an example on how CButtonST
can be used to create other button styles not supplied by default.
Functions
CWinXPButtonST
has only one function.
SetRounded
This function enables or disables the rounded border for the button.
// Parameters: // [IN] bRounded // If TRUE the button will have a rounded border. // [IN] bRepaint // If TRUE the button will be repainted. // // Return value: // BTNST_OK // Function executed successfully. // DWORD SetRounded(BOOL bRounded, BOOL bRepaint = TRUE)
Remarks
CButtonST
architecture makes possible to produce a whole range of buttons not available by default.
If someone implements new button styles I will happy to include his code in the next CButtonST
demo application.
Disclaimer
THE SOFTWARE AND THE ACCOMPANYING FILES ARE DISTRIBUTED "AS IS" AND WITHOUT ANY WARRANTIES WHETHER EXPRESSED OR IMPLIED. NO REPONSIBILITIES FOR POSSIBLE DAMAGES OR EVEN FUNCTIONALITY CAN BE TAKEN. THE USER MUST ASSUME THE ENTIRE RISK OF USING THIS SOFTWARE.
Terms of use
THIS SOFTWARE IS FREE FOR PERSONAL USE OR FREEWARE APPLICATIONS. IF YOU USE THIS SOFTWARE IN COMMERCIAL OR SHAREWARE APPLICATIONS
THEN DONATIONS GRATEFULLY ACCEPTED
Davide Calabro'
P.O. Box 65
21019 Somma Lombardo (VA)
Italy