Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Command Bars
  New Posts New Posts RSS Feed - Toolbars on a pane
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Toolbars on a pane

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


Joined: 19 February 2004
Location: United States
Status: Offline
Points: 132
Post Options Post Options   Thanks (0) Thanks(0)   Quote ddlittle Quote  Post ReplyReply Direct Link To This Post Topic: Toolbars on a pane
    Posted: 22 September 2010 at 8:29pm
I have a toolbar on a pane, and i have all the icons in a separate DLL.  I load all the icons and set the toolbars using :
 

CXTPImageManagerIconHandle hIcon;

hIcon.CreateIconFromResource(iconInst,MAKEINTRESOURCE(iconIds[x].icon),sz32, TRUE);

XTPImageManager()->SetIcon(hIcon,iconIds[x].cmd);

hIcon.CreateIconFromResource(iconInst,MAKEINTRESOURCE(iconIds[x].icon),sz16, TRUE);

XTPImageManager()->SetIcon(hIcon,iconIds[x].cmd);

I get my custom icons on every toolbar, but the toolbars inside panes don't use the custom icons unless I also set the button style in OnCreateControl to xtpButtonIconAndCaptionBelow, and using that style seems to force the buttons to 32x32.  The text really isn't necessary, but if I use xtpButtonIcon as the style, I get 16x16, but with the default button tops.  Any ideas how to fix this up?

Thanks!
- David
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.141 seconds.