Home Dashboard Directory Help
Search

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


Status: 

Closed
 as Fixed Help for as Fixed


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

Description

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.).
Details
Sign in to post a comment.
Posted by Jan Minarik on 6/2/2011 at 4:25 AM
Thanks Stefan0073:

afxGlobalData.EnableRibbonImageScale(FALSE);

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.

Thanks,
Ralf
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.
Thanks.
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:

    afxGlobalData.EnableRibbonImageScale(FALSE);

this has the very same effect.
Posted by 詹小兵 on 9/9/2010 at 7:11 PM
将其做成一个软件,可以与防火墙融合一起使用的安全措施,另外加载虚拟视频浦获和视频对话系统进行远程帮助,在不需要帮助时候,自动转换成在线教育视频课堂,帮助更多人进行在线学习,谢谢!~!`