![]() |
CXTPToolBar appearance |
Post Reply
|
| Author | |
mermaid
Newbie
Joined: 01 March 2007 Location: Russian Federation Status: Offline Points: 7 |
Post Options
Thanks(0)
Quote Reply
Topic: CXTPToolBar appearancePosted: 01 March 2007 at 2:23am |
|
Hello, we are using CXTPToolBar class for our applications and find some drawing problems. Resources for Please, look screenshot, toolbar bitmaps and toolbar creation code: (in tool_map.bmp there is wrong bmp)
//Creating left toolbar (no problem)
CXTPToolBar* pToolBar = (CXTPToolBar*)pCommandBars->Add(name, xtpBarTop); CXTPToolBar*pToolMain=pToolBar; if (!pToolBar || !pToolBar->LoadToolBar(IDR_MAINFRAME)) { TRACE0("Failed to create toolbar\n"); return; } // Creating right toolbar (black color is replaced with background color) |
|
![]() |
|
Oleg
Senior Member
Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
Quote Reply
Posted: 01 March 2007 at 4:38am |
|
Hi,
ImageManager always use TopLeft pixel as transparent.
you can manually set transparent pixeL
pCommandBars->GetImagerManager()->SetMaskColor(...);
ps. Why you don't use CXTPMenuBar for main menu ?
|
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
|
mermaid
Newbie
Joined: 01 March 2007 Location: Russian Federation Status: Offline Points: 7 |
Post Options
Thanks(0)
Quote Reply
Posted: 01 March 2007 at 6:01am |
|
Thanks. Now it works.
|
|
![]() |
|
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 |