How to change properties of CButton class?

Posted on 2005-04-06
Last Modified: 2013-11-20
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.

Question by:unisoftsystems
    LVL 30

    Expert Comment

    The property settings of a button has no features for circle shapes.

    To create a non-rectangular button, you need to use SetWindowRgn function.
    LVL 30

    Accepted Solution

    Here's some links with projects that use the SetWindowRgn.

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

    Expert Comment

    by:Jaime Olivares

    Featured Post

    Top 6 Sources for Identifying Threat Actor TTPs

    Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

    Join & Write a Comment

    Introduction: Finishing the grid – keyboard support for arrow keys to manoeuvre, entering the numbers.  The PreTranslateMessage function is to be used to intercept and respond to keyboard events. Continuing from the fourth article about sudoku. …
    If you use Adobe Reader X it is possible you can't open OLE PDF documents in the standard. The reason is the 'save box mode' in adobe reader X. Many people think the protected Mode of adobe reader x is only to stop the write access. But this fe…
    This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
    Here's a very brief overview of the methods PRTG Network Monitor ( offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…

    734 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    21 Experts available now in Live!

    Get 1:1 Help Now