Borderless buttons on CDialogBar
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums
Results 1 to 3 of 3

Thread: Borderless buttons on CDialogBar

Hybrid View

  1. #1
    Join Date
    Aug 2012

    Borderless buttons on CDialogBar

    I want to clean up the look of my dialog bar by having borderless buttons in my freeware app ( I'm using VC 2005. I tried ModifyStyle( 0, TBSTYLE_FLAT ) within the dialogbar OnCreate, and to remove the WS_BORDER style from the buttons but nothing seems to work.*In VC2005 am I able to have borderless buttons on a CDialogBar? Can you tell me how?*Thanks,Sam

  2. #2
    Join Date
    Feb 2003
    Iasi - Romania

    Re: Borderless buttons on CDialogBar

    The "flat" style for button controls is BS_FLAT.
    Ovidiu Cucu
    "When in Rome, do as Romans do."
    My latest articles:

  3. #3
    Join Date
    Nov 2000
    Voronezh, Russia

    Re: Borderless buttons on CDialogBar

    Afraid BS_FLAT is not a borderless style.

    and to remove the WS_BORDER style from the buttons but nothing seems to work
    And it never would. Old Windows controls are very rigid in aspect of controlling their visual traits. A solution may be BS_OWNERDRAW only.
    Last edited by Igor Vartanov; August 31st, 2012 at 07:56 AM.
    Best regards,

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Windows Mobile Development Center

Click Here to Expand Forum to Full Width

This a survey!

On-Demand Webinars (sponsored)