Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Docking Pane
  New Posts New Posts RSS Feed - adding an icon to a docking pane
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

adding an icon to a docking pane

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


Joined: 04 September 2007
Status: Offline
Points: 122
Post Options Post Options   Thanks (0) Thanks(0)   Quote vjedlicka Quote  Post ReplyReply Direct Link To This Post Topic: adding an icon to a docking pane
    Posted: 24 February 2008 at 4:09pm
Hello,
 
I am trying to add an icon to a docking pane.
I created a toolbar with the icon IDS_PANE_GROUPS_ELEMS.
When I click the icon, the pane shows up, but without the icon.
 
 
code fragment:
 CXTPDockingPane* pwndPane3 = m_paneManager.CreatePane(IDS_PANE_GROUPS_ELEMS, CRect(0, 0,200, 120), xtpPaneDockLeft);
 pwndPane3->SetIconID(IDS_PANE_GROUPS_ELEMS);
 
Thanks for advice
Vaclav
 
Thank you
Vaclav
---------------------
ToolkitPro 20.1.0
VS2010-2022, Windows 11
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: 25 February 2008 at 2:09pm
Need to add this IDS_PANE_GROUPS_ELEMS to ImageManager of DockingPanes:
 
m_paneManager.GetImageManager()->SetIcon(IDS_PANE_GROUPS_ELEMS , IDS_PANE_GROUPS_ELEMS);
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.156 seconds.