Print Page | Close Window

Trouble with an icon size in CXTPTaskPanel

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=12130
Printed Date: 24 June 2025 at 6:17am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Trouble with an icon size in CXTPTaskPanel
Posted By: debugx
Subject: Trouble with an icon size in CXTPTaskPanel
Date Posted: 10 September 2008 at 11:18am
Hello All,
I have MFC project with task panel on my form.
I filled my task panel with appropriate tasks.
Now I want that the task panel group headers have icon size 16px, group items 32px.
I use this way:
CImageList pImList;
pImList.Create(32, 32, ILC_COLOR32|ILC_MASK, 0, 1);
...
m_taskPanel.GetImageManager()->SetIcons(pImList, 0, 0, CSize(32, 32));
m_taskPanel.SetIconSize(CSize(32, 32));
m_taskPanel.SetGroupIconSize(CSize(16, 16));

But group headers always have icon size 32 px as group items.
Please tell me how can I set icon size for group headers 16px but for group items 32 px.

Thanks.


-------------
"Один законник с портфелем в рукаm



Replies:
Posted By: Oleg
Date Posted: 11 September 2008 at 1:06am
Hello,
 
Code looks right. Have to work. Check maybe you reset size later. try to trace CXTPTaskPanelPaintManager::DrawGroupCaption method.


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



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