Click here to Skip to main content
Licence 
First Posted 6 Sep 2001
Views 141,442
Downloads 1,967
Bookmarked 55 times

CWinXPButtonST

By Davide Calabro | 6 Sep 2001
A CButtonST derived class that emulates Office/Windows XP buttons

1

2

3

4
4 votes, 100.0%
5
4.45/5 - 16 votes
μ 4.45, σa 0.65 [?]

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

About the Author

Davide Calabro

Web Developer

Italy Italy

Member


Sign Up to vote   Poor Excellent
Add a reason or comment to your vote: x
Votes of 3 or less require a comment

Comments and Discussions

 
You must Sign In to use this message board. (secure sign-in)
 
Search this forum  
 FAQ
    Noise  Layout  Per page   
  Refresh
GeneralNice one PinmemberJaiju jacob1:21 9 Sep '05  
QuestionBorder when mouse isn't over ? PinmemberNiFF11:40 13 Nov '04  
Generalvery good PinmemberColderRain18:28 13 Sep '02  
GeneralGreat Job, a couple of issues PinmemberGreg Berman12:19 20 Sep '01  
GeneralRe: Great Job, a couple of issues PinmemberDavide Calabro23:40 4 Nov '01  
General1 thing missing PinmemberErik Thompson8:32 7 Sep '01  
GeneralRe: 1 thing missing PinmemberDavide Calabro2:08 8 Sep '01  
GeneralLooks nice. PinmemberRay Hayes7:00 7 Sep '01  
GeneralRe: Looks nice. PinmemberRichard Green7:59 7 Sep '01  
GeneralRe: Looks nice. PinmemberDavide Calabro2:09 8 Sep '01  
GeneralRe: Looks nice. PinmemberRay Hayes9:19 8 Sep '01  
GeneralRe: Looks nice. PinmemberDavide Calabro22:14 9 Sep '01  

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.

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