XTConrol::SetIconId |
Post Reply |
Author | |
adrien
Senior Member Joined: 30 April 2007 Location: New Zealand Status: Offline Points: 449 |
Post Options
Thanks(0)
Posted: 24 March 2008 at 9:13pm |
what is my chance of getting API for SetIconId changed as per below?
It's no good to me to be forced that all icon changes are animated.
void SetIconId(int nId, BOOL bAnimate = TRUE);
AFX_INLINE void CXTPControl::SetIconId(int nId, BOOL bAnimate) {
if (m_nIconId != nId) {m_nIconId = nId; RedrawParent(bAnimate);} } |
|
Oleg
Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
|
Hello,
as I wrote just call pControl->RedrawParent(FALSE); to disable animation after icon changed.
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
adrien
Senior Member Joined: 30 April 2007 Location: New Zealand Status: Offline Points: 449 |
Post Options
Thanks(0)
|
OK
I'm doing this every 50ms though, so it's crazy to kick off an asynch animated update then immediately cancel it with another call - make the system do work for no reason.
I have to call that after each time I set the icon id.
I don't think that's the best way to do it, so I guess I will have to stick to patching the library. It only takes 30s.
|
|
Oleg
Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
|
Hi,
ok, think nobody even need animation for SetIconId. we changed to
AFX_INLINE void CXTPControl::SetIconId(int nId) {
if (m_nIconId != nId) {m_nIconId = nId; RedrawParent(FALSE);} } |
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
adrien
Senior Member Joined: 30 April 2007 Location: New Zealand Status: Offline Points: 449 |
Post Options
Thanks(0)
|
That's why I suggested the default parameter, so it would behave the same way if noone changes their code, but if someone doesn't want animation, they can add the extra parameter.
|
|
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 |