Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Command Bars
  New Posts New Posts RSS Feed - Add separator to Menu
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Add separator to Menu

 Post Reply Post Reply
Author
Message
guywmustang View Drop Down
Newbie
Newbie


Joined: 17 April 2006
Status: Offline
Points: 20
Post Options Post Options   Thanks (0) Thanks(0)   Quote guywmustang Quote  Post ReplyReply Direct Link To This Post Topic: Add separator to Menu
    Posted: 21 May 2007 at 3:13pm
I am trying to add a separator to my menu.  I have tried such things as:

pControls->Add(xtpControlTypeButton,ID_SEPARATOR)

I have also tried creating a CMenu, appending a Separator to it, then calling:

pControls->AddMenuitem(pMenu,0)


Neither have worked.  How do I append a separator to my menu?  Either through use of AddMenuItem or Add functions?

Thanks
Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post Posted: 22 May 2007 at 1:00am
Hi,
 
try this:
pControls->GetAt(i)->SetBeginGroup(TRUE);
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.125 seconds.