• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 238
  • Last Modified:

How to change properties of CButton class?

I have to customized the MFC Button control . I want to change the properties of button and its sape needs to be change from square/rectangle to circle.



0
unisoftsystems
Asked:
unisoftsystems
  • 2
1 Solution
 
AxterCommented:
The property settings of a button has no features for circle shapes.

To create a non-rectangular button, you need to use SetWindowRgn function.
0
 
AxterCommented:
Here's some links with projects that use the SetWindowRgn.
http://www.codeguru.com/dialog/IrrBmpDlg.html
http://www.codeguru.com/dialog/transparent_dialog.shtml

If you look under codeguru, you'll find more example projects.

http://www.codeguru.com
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now