![]() |
please help! |
Post Reply
|
| Author | |
wuyunpeng
Newbie
Joined: 01 December 2005 Status: Offline Points: 16 |
Post Options
Thanks(0)
Quote Reply
Topic: please help!Posted: 08 March 2006 at 8:25am |
|
My toolbars is build with code(not load from resource),and i have a CImageList object which contains all my bitmap resource for my toolbars. i use the following code to build my toolbars: CXTPControl* pControl = pToolBar->GetControls()->Add(...); pControl->SetCaption(...); pControl->SetDescription(..); pControl->SetIconId(..); pControl->SetIconId() need a icon resource id but i have an image list only. would you please tell me how to deal with this situation. |
|
![]() |
|
Oleg
Senior Member
Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
Quote Reply
Posted: 08 March 2006 at 10:46am |
|
Hello, First you must copy icons from ImageList to ImageManager: pCommandBars->GetImageManager()->SetIcons(imlIcons, NULL, 0, CSize(16, 16));
assign Index of Icon pControl->SetIconId(1); pControl->SetIconId(2); ... |
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
|
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 |