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

Thread: Borderless buttons on CDialogBar

Hybrid View

  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
    ovidiucucu's Avatar
    ovidiucucu is offline Moderator/Reviewer Power Poster
    Join Date
    Feb 2003
    Location
    Iasi - Romania
    Posts
    8,021

    Re: Borderless buttons on CDialogBar

    The "flat" style for button controls is BS_FLAT.
    Ovidiu Cucu
    "When in Rome, do as Romans do."
    Visit: Microsoft Virtual Academy
    Follow: https://twitter.com/#!/ovidiucucu
    My blog: http://codexpert.ro/blog/author/ovidiu-cucu/

  3. #3
    Join Date
    Nov 2000
    Location
    Voronezh, Russia
    Posts
    5,931

    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
  •  


Azure Activities Information Page

Windows Mobile Development Center


Click Here to Expand Forum to Full Width

This is a CodeGuru survey question.


Featured


HTML5 Development Center