Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Controls
  New Posts New Posts RSS Feed - Dynamic menu creation of Ribbon SplitButton
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Dynamic menu creation of Ribbon SplitButton

 Post Reply Post Reply
Author
Message
Marco1 View Drop Down
Senior Member
Senior Member


Joined: 16 January 2004
Location: Germany
Status: Offline
Points: 251
Post Options Post Options   Thanks (0) Thanks(0)   Quote Marco1 Quote  Post ReplyReply Direct Link To This Post Topic: Dynamic menu creation of Ribbon SplitButton
    Posted: 18 June 2011 at 11:50am
I have to generate the menu content of a ribbon split button every time just before the menu is shown.
In the example I don't want the three "Option 1-3" be static content, they need to be created right after the split button is clicked and before menu dropdown.


I tried to receive a CBN_DROPDOWN message - but it seems the split button doesn't send one.
Other way may be the ON_XTP_INITCOMMANDSPOPUP message but this seems to be send only to mainframe?
Any suggestions about this?

Back to Top
markr View Drop Down
Senior Member
Senior Member


Joined: 01 August 2004
Status: Offline
Points: 441
Post Options Post Options   Thanks (0) Thanks(0)   Quote markr Quote  Post ReplyReply Direct Link To This Post Posted: 20 June 2011 at 1:47pm
Yes, ON_XTP_INITCOMMANDSPOPUP seems to be the best way to do this.

> but this seems to be send only to mainframe?

Guess notification is just sent to the parent window, which seems reasonable enough.
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.