Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Command Bars
  New Posts New Posts RSS Feed - [SOLVED]status bar cant print text with xaml icon
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

[SOLVED]status bar cant print text with xaml icon

 Post Reply Post Reply
Author
Message
davidu View Drop Down
Newbie
Newbie


Joined: 23 May 2023
Status: Offline
Points: 5
Post Options Post Options   Thanks (0) Thanks(0)   Quote davidu Quote  Post ReplyReply Direct Link To This Post Topic: [SOLVED]status bar cant print text with xaml icon
    Posted: 20 November 2023 at 12:18pm
Hi,

THere is a bug for CXTPStatusBarPaintManager::DrawStatusBarPaneEntry

The rect to print the text of the pane is calculated wrong when the pane icon is xaml. probably line 244 should be modified where I marked here.

            CSize szIcon = (pIcon->IsVectorIcon()
-->issue is here. should be size of icon             ? rcItem.Size()
            : CXTPPaintManager::AdjustDpiIconSize(
              pIcon, pIcon->GetExtent(),
             XTP_SAFE_GET2(pPane, GetStatusBar(), GetCommandBars(), NULL),
  rcItem.Size()));
Back to Top
agontarenko View Drop Down
Admin Group
Admin Group


Joined: 25 March 2016
Status: Offline
Points: 291
Post Options Post Options   Thanks (0) Thanks(0)   Quote agontarenko Quote  Post ReplyReply Direct Link To This Post Posted: 09 January 2024 at 4:27am
Hello,

I have checked this code and any problems has not found. 
If vector icon is used then rcItem size is used.

Regards,
Artem Gontarenko
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.188 seconds.