Click here to Skip to main content
11,437,397 members (34,904 online)
Click here to Skip to main content

CWinXPButtonST

, 6 Sep 2001
Rate this:
Please Sign up or sign in to vote.
A CButtonST derived class that emulates Office/Windows XP buttons
<!-- Download Links --> <!-- Article image -->

Sample Image - CWinXPButtonST.jpg

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

SoftechSoftware homepage
SoftechSoftware Email

License

This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here

Share

About the Author

Davide Calabro
Web Developer
Italy Italy
No Biography provided

Comments and Discussions

 
GeneralNice one Pin
Jaiju jacob9-Sep-05 1:21
memberJaiju jacob9-Sep-05 1:21 
QuestionBorder when mouse isn't over ? Pin
NiFF13-Nov-04 11:40
memberNiFF13-Nov-04 11:40 
Generalvery good Pin
ColderRain13-Sep-02 18:28
memberColderRain13-Sep-02 18:28 
GeneralGreat Job, a couple of issues Pin
Greg Berman20-Sep-01 12:19
memberGreg Berman20-Sep-01 12:19 
GeneralRe: Great Job, a couple of issues Pin
Davide Calabro4-Nov-01 23:40
memberDavide Calabro4-Nov-01 23:40 
General1 thing missing Pin
Erik Thompson7-Sep-01 8:32
memberErik Thompson7-Sep-01 8:32 
GeneralRe: 1 thing missing Pin
Davide Calabro8-Sep-01 2:08
memberDavide Calabro8-Sep-01 2:08 
GeneralLooks nice. Pin
Ray Hayes7-Sep-01 7:00
memberRay Hayes7-Sep-01 7:00 
GeneralRe: Looks nice. Pin
Richard Green7-Sep-01 7:59
memberRichard Green7-Sep-01 7:59 
GeneralRe: Looks nice. Pin
Davide Calabro8-Sep-01 2:09
memberDavide Calabro8-Sep-01 2:09 
GeneralRe: Looks nice. Pin
Ray Hayes8-Sep-01 9:19
memberRay Hayes8-Sep-01 9:19 
GeneralRe: Looks nice. Pin
Davide Calabro9-Sep-01 22:14
memberDavide Calabro9-Sep-01 22:14 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.

| Advertise | Privacy | Terms of Use | Mobile
Web03 | 2.8.150428.2 | Last Updated 7 Sep 2001
Article Copyright 2001 by Davide Calabro
Everything else Copyright © CodeProject, 1999-2015
Layout: fixed | fluid