Click here to Skip to main content
15,890,845 members
Please Sign up or sign in to vote.
4.00/5 (1 vote)
See more:
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 change.

In VC2005 am I able to have borderless buttons on a CDialogBar? Can you tell me how?

Thanks,
Sam
Posted
Comments
mbue 29-Aug-12 18:14pm    
what do you think about owner draw buttons?

I am doing the exact same thing right now, I created a flat button class that draws png images (to make it look like a toolbar). I hooked up the buttons to the CmdUI handler and noticed some occasional strange behavior with the disabled state. I can post the button class here for you or email it to you if it sounds like something you could use.
 
Share this answer
 
Hi, sounds like there is no easy solution. Perhaps this is something that can only be acheived using styles in later versions of Visual Studio. Thanks for the input. Sam
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900