Problem displaying images in docking tab |
Post Reply |
Author | |
cschmidt
Newbie Joined: 14 October 2005 Location: United States Status: Offline Points: 6 |
Post Options
Thanks(0)
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
|
|
Oleg
Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
|
Seems ok... What you have in SetIcons method ?
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
cschmidt
Newbie Joined: 14 October 2005 Location: United States Status: Offline Points: 6 |
Post Options
Thanks(0)
|
Thanks for the reply.
I ended up recompiling the entire project and it seems to work now.
Thanks,
Craig
|
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |