Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Toolkit Pro
  New Posts New Posts RSS Feed - Change submenu caption to icon in tearoff toolbar?
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Change submenu caption to icon in tearoff toolbar?

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


Joined: 19 September 2006
Status: Offline
Points: 112
Post Options Post Options   Thanks (0) Thanks(0)   Quote MichaelN Quote  Post ReplyReply Direct Link To This Post Topic: Change submenu caption to icon in tearoff toolbar?
    Posted: 05 March 2007 at 3:42pm
I have a tearoff menu that turns into a toolbar. The menu has a popup with a caption for a submenu. When the toolbar appears it shows icons for all buttons except the submenu caption. How do I get rid of the submenu caption and make it an icon like the other toolbar buttons?

I figure I am supposed to do this inside the WM_XTP_TEAROFFDONE handler. I have that working and it gets called by the tearoff. The problem is that I don't know how to change the caption to an icon inside that handler. I don't see any examples of how to do that.

Michael
Back to Top
Oleg View Drop Down
Senior Member
Senior Member


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: 06 March 2007 at 1:40am
Hi, I think there is no icon for this sublemenu.
By default all submenus has id = -1
 
in WM_XTP_TEAROFFDONE handle, find this control, set its id -> pControl->SetId(Id); and set style pControl->SetStyle(xtpButtonIcon);
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.045 seconds.