Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: VC6 VC7 VC8.0 VC9.0 VC10.0
how to create button with different shapes in VC++ in MFC Windows based application?
Posted 4-Mar-11 22:00pm
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

There is an article here: CRoundButton2 - A fancy graphical button[^] - it may not meet your needs exactly, but it does provide a basis.
  Permalink  
Comments
SAKryukov at 6-Mar-11 0:25am
   
Griff, is it a true round button or not, do you know?
The problem is, when I tried to teach myself doing such stuff, I found that many "rounded" buttons in the articles are in fact rectangular, they only have a view of non-rectangular, achieved by transparent areas in rendering.
 
In contrast, a true non-rectangular button responds correctly to the mouse event: on the corner, they are transparent to the mouse. False ("optical") rounded button respond to click where they should not. This is a kind of fraud and can confuse the user.
 
--SA
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 2

I think this may help you http://www.hackchina.com/en/cont/193932[^]
  Permalink  

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
0 OriginalGriff 587
1 Sergey Alexandrovich Kryukov 479
2 Maciej Los 305
3 Mathew Soji 195
4 Afzaal Ahmad Zeeshan 170
0 OriginalGriff 7,356
1 Sergey Alexandrovich Kryukov 6,777
2 DamithSL 5,461
3 Manas Bhardwaj 4,916
4 Maciej Los 4,475


Advertise | Privacy | Mobile
Web03 | 2.8.1411023.1 | Last Updated 21 Mar 2011
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100