Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Toolkit Pro
  New Posts New Posts RSS Feed - Shrinking icons with 20.1
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Shrinking icons with 20.1

 Post Reply Post Reply
Author
Message
rconn View Drop Down
Groupie
Groupie


Joined: 16 May 2007
Location: United States
Status: Offline
Points: 74
Post Options Post Options   Thanks (0) Thanks(0)   Quote rconn Quote  Post ReplyReply Direct Link To This Post Topic: Shrinking icons with 20.1
    Posted: 29 October 2021 at 11:06am
My app is working with 20.0.  When I updated to 20.10, I'm having a problem with the commandbar icons shrinking when the display scale is changed.  100% works, 200% shrinks the icons (instead of increasing their size -- I'd be OK with them just remaining their original 32x32 instead of shrinking to 16x16 or smaller).

The only code change was to remove the deprecated SetDPIScalingOptions(TRUE) call, and replace it with the recommended SetDPIScalingOptions(TRUE) and EnableDpiGalleryItemScaling(TRUE) calls.  (I've tried with one or the other, both, and neither; it doesn't affect the results.)

Is there something more I need to do in 20.10 to get the icons to scale properly?
Back to Top
markr View Drop Down
Senior Member
Senior Member


Joined: 01 August 2004
Status: Offline
Points: 442
Post Options Post Options   Thanks (0) Thanks(0)   Quote markr Quote  Post ReplyReply Direct Link To This Post Posted: 01 November 2021 at 5:12pm
Have you tried calling XTPDpiHelper()->EnableDpiBitmapScaling(TRUE) from your app's InitInstance() method?
Back to Top
Fredrik View Drop Down
Senior Member
Senior Member


Joined: 22 June 2005
Status: Offline
Points: 226
Post Options Post Options   Thanks (0) Thanks(0)   Quote Fredrik Quote  Post ReplyReply Direct Link To This Post Posted: 09 November 2021 at 8:43am
I can't get it to work, even with calling XTPDpiHelper()->EnableDpiBitmapScaling(TRUE) using RibbonSample - just see the pre-Office 2013 themes which are the ones using PNG images. 

I have a similar question in another thread: 
DPI issues with PNG icons and XTP 20.1 - Codejock Developer Community
Windows 10, Visual Studio 20157, Toolkit Pro 18.3.0
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.156 seconds.