![]() |
Possible bug in CXTPTabClientWnd |
Post Reply ![]() |
Author | |
danpetitt ![]() Senior Member ![]() Joined: 17 July 2005 Location: United Kingdom Status: Offline Points: 109 |
![]() ![]() ![]() ![]() ![]() Posted: 07 January 2007 at 5:08pm |
I have little icons in my tabs, when i need to change them I call the .UpdateContents() method, but this only changes the text and not the icon.
If I click the tab then the tab is refreshed, but otherwise it isnt.
I added the following line (in bold) and it now works:
Is this a bug, or is there something else I should do.
|
|
![]() |
|
Oleg ![]() Senior Member ![]() Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
![]() ![]() ![]() ![]() ![]() |
Hello,
How you set icon?
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
|
danpetitt ![]() Senior Member ![]() Joined: 17 July 2005 Location: United Kingdom Status: Offline Points: 109 |
![]() ![]() ![]() ![]() ![]() |
By overriding GetItemIcon in my derived TabClientWnd .. basically to put in a ReadOnly icon into the tab instead of the file icon. |
|
![]() |
|
Oleg ![]() Senior Member ![]() Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
![]() ![]() ![]() ![]() ![]() |
Hi, Remove this change and just call Invalidate (or RecalcLayout)
from StyleView sample:
void CStylerView::SetLoading(BOOL bLoading)
{ int nState = bLoading ? -1 : 3; if (m_nLoadingState != nState)
{ m_nLoadingState = nState; GetMainFrame()->m_MTIClientWnd.Invalidate(FALSE); } } |
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
|
danpetitt ![]() Senior Member ![]() Joined: 17 July 2005 Location: United Kingdom Status: Offline Points: 109 |
![]() ![]() ![]() ![]() ![]() |
But wont that cause all the tabs to flicker and redraw unnecessarily?
|
|
![]() |
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 |