Home Dashboard Directory Help

MFC - CMFCToolBar::m_bDontScaleImages variable is available only for static link by Jan Minarik


 as Fixed Help for as Fixed

Sign in
to vote
Type: Bug
ID: 595648
Opened: 9/7/2010 12:47:53 AM
Access Restriction: Public
User(s) can reproduce this bug


I design applications with new MFC components like CMFCToolBar and want to design it with High-DPI aware. I provide proper toolbar images for each DPI and I need to tell CMFCToolBar to don't scale images in high DPI modes.

So I need set CMFCToolBar::m_bDontScaleImages variable to TRUE, but this can be done only with static link. With dynamic link linker shows error with unresolved external.

I can't use static link for my projects (it's huge project with many DLLs etc.).
Sign in to post a comment.
Posted by Jan Minarik on 6/2/2011 at 4:25 AM
Thanks Stefan0073:


really did the work. It work for non-ribon toolbars too.
Posted by Ralf Tobel on 3/17/2011 at 10:27 AM
We are facing the same problem and it was really a surprise that this is not fixed in SP1.

So I'd really appreciate if someone from Microsoft can comment in which release this this will be fixed.

Posted by Jan Minarik on 3/11/2011 at 3:54 AM
Today I installed VS 2010 SP1 and think, that this is fixed, but I'm surprised, that this is still NOT fixed in VS2010 SP1!

Can anybody tell me, why is this Closed as Fixed, when it's not fixed?
Posted by Jan Minarik on 9/10/2010 at 5:25 AM
This bug is signed "Resolved as Fixed", but in which version, or any additional information will be appreciated.
Posted by Microsoft on 9/7/2010 at 2:29 AM
Thank you for reporting the issue.
We are routing this issue to the appropriate group within the Visual Studio Product Team for triage and resolution.These specialized experts will follow-up with your issue.
Sign in to post a workaround.
Posted by Stefan0073 on 5/18/2011 at 1:53 AM
Instead of setting the variable m_bDontScaleImages, just disable ribbon image scaling:


this has the very same effect.
Posted by 詹小兵 on 9/9/2010 at 7:11 PM