Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

How to add a Separator into a toolbar

28 views
Skip to first unread message

Allan Phillips

unread,
Jan 22, 2009, 11:32:28 AM1/22/09
to
I have an MFC app that has a toolbar defined within the .rc file.

I want to insert a separator between a couple of the toolbar buttons. I
cannot find any command within VS-2005 that allows me to do that.

Do I have to edit the .rc file with a text editor to insert a separator?

Thanks, Allan.


Tom Serface

unread,
Jan 31, 2009, 12:47:14 PM1/31/09
to
I would set up a blank button and change the style of the button to:

TBBS_SEPARATOR

In OnCreate() in mainframe after the toolbar is created.

Using a call to SetButtonStyle()

http://msdn.microsoft.com/en-us/library/abzy0sbt(VS.80).aspx

Tom

"Allan Phillips" <allanep...@gmail.com> wrote in message
news:%238iIF8K...@TK2MSFTNGP04.phx.gbl...

0 new messages