Print Page | Close Window

Icons with black background

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Toolkit Pro
Forum Description: Topics Related to Codejock Toolkit Pro
URL: http://forum.codejock.com/forum_posts.asp?TID=4347
Printed Date: 12 January 2026 at 12:33pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Icons with black background
Posted By: Hayder
Subject: Icons with black background
Date Posted: 05 June 2006 at 8:58am

Hello,

I use CXTPControl::SetCustomIcon (in an example similar to DynamicPopups - CControlUndo).

CXTPControl* pControl = m_pControls->Add(xtpControlButton, FIRST_FAVORITES_COMMAND + i, _T(""), m_nIndex + 1 +i, TRUE);
pControl->SetCaption(mydata->subject);
pControl->SetFlags(xtpFlagManualUpdate);
int* pID = new int;
*pID = mydata->object_id;
pControl->SetTag((DWORD_PTR)pID);
pControl->SetCustomIcon(CPasswordManagerView::GetView()-& gt;m_imgList.ExtractIcon(mydata->icon));

I receive a black background on icons at established style XP or Office XP.
In Office 2003 and Widbey's style everything is all right.
It is possible to correct it?

 




Replies:
Posted By: Oleg
Date Posted: 05 June 2006 at 5:59pm

Hi,

call

XTPPaintManager()->GetIconsInfo()->bUseFadedIcons = FALSE;

 

after you change theme

 

ps. to avoid resource leak, you also must call DestroyIcon(hIcon) after CImageList::ExtractIcon...



-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS


Posted By: Hayder
Date Posted: 06 June 2006 at 12:05am

Thank you very much!

I had solved all my problems.




Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net