Click here to Skip to main content
15,671,318 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
how to create button with different shapes in VC++ in MFC Windows based application?

There is an article here: CRoundButton2 - A fancy graphical button[^] - it may not meet your needs exactly, but it does provide a basis.
Share this answer
Sergey Alexandrovich Kryukov 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.

I think this may help you[^]
Share this answer

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

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900