Thread: Custom shaped controls

  1. #1
    Registered User
    Join Date
    Dec 2010
    Location
    Delhi, India
    Posts
    59

    Custom shaped controls

    Hi all, I am trying to make custom shaped buttons in Winapi, but can't figure out the correct method for this. I searched on the internet, but could not find a useful article on this. Any suggestions would be welcomed!

  2. #2
    Banned
    Join Date
    Aug 2010
    Location
    Ontario Canada
    Posts
    9,547
    One simple way is to use static controls with bitmaps. Just be sure the notify style is specified so they will act like buttons.

    A secondary method is to use a toolbar. This allows you to load custom bitmaps to the buttons while still retaining the mousover and tool-tip effects of standard buttons.

    The final way would be to go "owner draw" but this is some serious coding that I would not turn to until the other two methods have proven unsatisfactory.

  3. #3

  4. #4
    Registered User
    Join Date
    Dec 2010
    Location
    Delhi, India
    Posts
    59
    Thanks for the suggestions, I am working on this now, will post here if I encounter any further problems.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Custom-shaped controls
    By Overlord in forum Windows Programming
    Replies: 4
    Last Post: 04-06-2008, 01:19 PM
  2. custom controls
    By eXistenZ in forum Windows Programming
    Replies: 5
    Last Post: 04-18-2005, 06:09 AM
  3. Creating Custom shaped windows
    By cfrost in forum C++ Programming
    Replies: 2
    Last Post: 07-10-2004, 04:10 AM
  4. Custom shaped windows
    By cfrost in forum C++ Programming
    Replies: 1
    Last Post: 07-10-2004, 02:04 AM
  5. Custom controls
    By Mithoric in forum Windows Programming
    Replies: 3
    Last Post: 12-02-2003, 04:58 AM