Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Command Bars
  New Posts New Posts RSS Feed - Right-aligned menu item
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Right-aligned menu item

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


Joined: 27 June 2013
Status: Offline
Points: 7
Post Options Post Options   Thanks (0) Thanks(0)   Quote Mirek Quote  Post ReplyReply Direct Link To This Post Topic: Right-aligned menu item
    Posted: 06 May 2024 at 4:50am
Is there a simple way to have one menu item on the right side of the MenuBar? 
See example below, where "Logout" is actually a popup menu. Thank you.
+-------------------------------------------------------------------+
| File Edit View Help                                        Logout |
+-------------------------------------------------------------------+

Back to Top
Mirek View Drop Down
Newbie
Newbie


Joined: 27 June 2013
Status: Offline
Points: 7
Post Options Post Options   Thanks (0) Thanks(0)   Quote Mirek Quote  Post ReplyReply Direct Link To This Post Posted: 07 May 2024 at 12:15pm
I managed to solve it, here is the solution:
CXTPControl* pLoginSubmenu = ... (get pointer to the "Login" CXTPControl)
pLoginSubmenu->SetFlags(pLoginSubmenu->GetFlags() | xtpFlagRightAlign);
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.140 seconds.