Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Docking Pane
  New Posts New Posts RSS Feed - Problem displaying images in docking tab
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Problem displaying images in docking tab

 Post Reply Post Reply
Author
Message
cschmidt View Drop Down
Newbie
Newbie
Avatar

Joined: 14 October 2005
Location: United States
Status: Offline
Points: 6
Post Options Post Options   Thanks (0) Thanks(0)   Quote cschmidt Quote  Post ReplyReply Direct Link To This Post Topic: Problem displaying images in docking tab
    Posted: 21 June 2006 at 9:01pm
Hi,
 
I have been unsuccessful at getting images to display on my docking tables.  I've created a bitmap resource 16x16 and five wide.  I'm using the following code to add the bitmap to the control:
 
int _images[] = {IDB_XREF_TABLE, IDB_CM_TASK, IDB_OB_CENABLER, IDB_QUESTION, IDB_PG_BOOKCLOSED};
 
SetIcons(IDB_LINKS_WINDOW_IMAGES, _images, 5, RGB(0xFF,0xFF,0xFF));
 
CXTPDockingPane * analysisPane = CreatePane(analysisPaneType, CRect(0, 0,210, 120), xtpPaneDockBottom, NULL);
 analysisPane->SetTitle("Analysis (not initialized)");
 analysisPane->SetIconID(IDB_CM_TASK);
 
CXTPDockingPane * questionPane = CreatePane(questionPaneType, CRect(0, 0,210, 120), xtpPaneDockRight, analysisPane);
 questionPane->SetTitle("Questions (not initialized)");
 questionPane->SetIconID(IDB_QUESTION);
 
CXTPDockingPane * objectivePane = CreatePane(objectivePaneType, CRect(0, 0,210, 120), xtpPaneDockRight, questionPane);
 objectivePane->SetTitle("Objectives (not initialized)");
 objectivePane->SetIconID(IDB_OB_CENABLER);
 
CXTPDockingPane * programPane = CreatePane(programPaneType, CRect(0, 0,210, 120), xtpPaneDockRight, objectivePane);
 programPane->SetTitle("Programs (not initialized)");
 programPane->SetIconID(IDB_PG_BOOKCLOSED);
 
CXTPDockingPane * crossRefPane = CreatePane(crossRefPaneType, CRect(0, 0,210, 120), xtpPaneDockRight, programPane);
 crossRefPane->SetTitle("Cross Reference (not initialized)");
 crossRefPane->SetIconID(IDB_XREF_TABLE);
 
This code resides in a class derived from CXTPDockingPaneManager.  Is there something else that needs to be done to get the images to render on the docking tables?
 
Thanks,
Craig
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: 21 June 2006 at 9:55pm
Seems ok... What you have in SetIcons method ?
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
cschmidt View Drop Down
Newbie
Newbie
Avatar

Joined: 14 October 2005
Location: United States
Status: Offline
Points: 6
Post Options Post Options   Thanks (0) Thanks(0)   Quote cschmidt Quote  Post ReplyReply Direct Link To This Post Posted: 22 June 2006 at 11:11am
Thanks for the reply.
 
I ended up recompiling the entire project and it seems to work now.
 
Thanks,
Craig
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.