![]() |
Bug CXTPStatusBarSwitchPane using Vector icons |
Post Reply ![]() |
Author | |
hpuck ![]() Newbie ![]() Joined: 18 July 2025 Status: Offline Points: 2 |
![]() ![]() ![]() ![]() ![]() Posted: 18 July 2025 at 8:40am |
Using vector icons in an StatusBarSwitchPane causes: * asserts in debug build * icons not drawn centered but left aligned When debugging using Office2013 theme the Asset is triggered by the call to pIcon->GetExtent() and the left aligned drawing happens because due to sz being zeroed Since ICON_SMALL is used a preferred icon size, why not use a fixed icon size for vector icons? int CXTPStatusBarThemeOffice2013::DrawStatusBarSwitchPane(CDC* pDC, CRect rcItem, CXTPStatusBarSwitchPane* pPane) { ..... CXTPImageManagerIcon* pIcon = pPane->GetStatusBar()->GetImageManager()->GetImage(pSwitch->nID, ICON_SMALL); if (pIcon) { CSize sz = CXTPPaintManager::AdjustDpiIconSize( pIcon, pIcon->GetExtent(), XTP_SAFE_GET2(pPane, GetStatusBar(), GetCommandBars(), NULL), rcItem.Size() ); .....
|
|
![]() |
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 |