![]() |
CXTCaption::UpdateCaption icon bug |
Post Reply ![]() |
Author | |
Kimeli ![]() Newbie ![]() Joined: 14 July 2003 Location: Finland Status: Offline Points: 5 |
![]() ![]() ![]() ![]() ![]() Posted: 28 December 2004 at 4:00am |
I noticed a tiny bug in CXTCaption::UpdateCaption.
Bug occurs when changing icon from "real icon" to "null icon". In CXTCaption::UpdateCaption are following code: if (hIcon != NULL) { m_hIcon = hIcon; DrawCaptionIcon( pDC, rcClient ); } So if given icon is NULL, then CXTCaption::m_hIcon wont be updated and previous icon will be painted when next update occurs (UpdateCaption seems to work ok before next paint, because it erases background in UpdateCaption also). Luckily, UpdateCaption is virtual, so it can be override. But that if (hIcon != NULL) should be removed, set m_hIcon outside of that scope, etc.. [offtopic] Happy new year! [/offtopic] |
|
![]() |
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 |