![]() |
How to replace icon with specified size? |
Post Reply
|
| Author | |
kle4o
Newbie
Joined: 05 October 2006 Status: Offline Points: 4 |
Post Options
Thanks(0)
Quote Reply
Topic: How to replace icon with specified size?Posted: 05 October 2006 at 10:47am |
|
Hi all!
I have the folowing initialization code: pControl->GetImageManager()->SetIcon(hicon,pControl->GetID(),CSize(16,16)); How can I replace this icon with new one with same size? When I try to use the same way to replace the old icon, there is an assert at Line 2379 in file xtpimagemanager.cpp. I found in help the metod RemoveIcon. But this metod removes all icons for the specified control. |
|
![]() |
|
Oleg
Senior Member
Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
Quote Reply
Posted: 06 October 2006 at 12:24am |
|
Hello,
It must work. Can you show what in 2379 line of toolkit you have?
|
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
|
kle4o
Newbie
Joined: 05 October 2006 Status: Offline Points: 4 |
Post Options
Thanks(0)
Quote Reply
Posted: 06 October 2006 at 1:36am |
|
My version of Xtreme Toolkit Pro is 10.3.1. And the code is:
CXTPImageManagerIcon* CXTPImageManagerIconSet::CreateIcon(UINT nWidth) { CXTPImageManagerIcon* pIcon = 0; if (m_mapIcons.Lookup(nWidth, pIcon)) { ASSERT(pIcon->m_nID == m_nID); ASSERT(pIcon->m_nWidth == nWidth); // line 2379 } else { ........ } ASSERT(pIcon); return pIcon; } |
|
![]() |
|
Oleg
Senior Member
Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
Quote Reply
Posted: 06 October 2006 at 2:11am |
|
Hello, How you initially set icon for this command?
|
|
|
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 |