CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    Aug 2012
    Posts
    1

    Borderless buttons on CDialogBar

    I want to clean up the look of my dialog bar by having borderless buttons in my freeware app (www.noteliner.org). 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
    Location
    Iasi - Romania
    Posts
    8,234

    Re: Borderless buttons on CDialogBar

    The "flat" style for button controls is BS_FLAT.
    Ovidiu
    "When in Rome, do as Romans do."
    My latest articles: https://codexpertro.wordpress.com/

  3. #3
    Join Date
    Nov 2000
    Location
    Voronezh, Russia
    Posts
    6,620

    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,
    Igor

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
  •  





Click Here to Expand Forum to Full Width

Featured