Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Toolkit Pro
  New Posts New Posts RSS Feed - Trouble with an icon size in CXTPTaskPanel
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Trouble with an icon size in CXTPTaskPanel

 Post Reply Post Reply
Author
Message
debugx View Drop Down
Groupie
Groupie
Avatar

Joined: 23 June 2008
Location: Andorra
Status: Offline
Points: 28
Post Options Post Options   Thanks (0) Thanks(0)   Quote debugx Quote  Post ReplyReply Direct Link To This Post Topic: Trouble with an icon size in CXTPTaskPanel
    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
Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.078 seconds.