Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Toolkit Pro
  New Posts New Posts RSS Feed - XTConrol::SetIconId
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

XTConrol::SetIconId

 Post Reply Post Reply
Author
Message
adrien View Drop Down
Senior Member
Senior Member


Joined: 30 April 2007
Location: New Zealand
Status: Offline
Points: 449
Post Options Post Options   Thanks (0) Thanks(0)   Quote adrien Quote  Post ReplyReply Direct Link To This Post Topic: XTConrol::SetIconId
    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);}
}
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: 25 March 2008 at 1:55am
Hello,
 as I wrote just call pControl->RedrawParent(FALSE); to disable animation after icon changed.
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
adrien View Drop Down
Senior Member
Senior Member


Joined: 30 April 2007
Location: New Zealand
Status: Offline
Points: 449
Post Options Post Options   Thanks (0) Thanks(0)   Quote adrien Quote  Post ReplyReply Direct Link To This Post Posted: 25 March 2008 at 9:24am
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.
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: 25 March 2008 at 10:19am
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
Back to Top
adrien View Drop Down
Senior Member
Senior Member


Joined: 30 April 2007
Location: New Zealand
Status: Offline
Points: 449
Post Options Post Options   Thanks (0) Thanks(0)   Quote adrien Quote  Post ReplyReply Direct Link To This Post Posted: 25 March 2008 at 10:44am
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.
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.125 seconds.