dcsimg
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3

Thread: CMFCRibbonBar High DPI

  1. #1
    Join Date
    Jul 2016
    Posts
    2

    Question CMFCRibbonBar High DPI

    In my (otherwise) high DPI aware MFC application, I use a ribbon bar as the primary interface. I've provided high resolution (48x48) image strips, but when displaying on a high DPI (4k) monitor, these are not used.

    I know I can trap a message when the DPI changes, and use this to rescale UI items (I do this for a few owner drawn aspects already to increase the font size), is there any way I can force CMFCRibbonBar to use the High DPI images?

    Thanks,

    Paul

  2. #2
    VictorN's Avatar
    VictorN is offline Super Moderator Power Poster
    Join Date
    Jan 2003
    Location
    Hanover Germany
    Posts
    19,581

    Re: CMFCRibbonBar High DPI

    Quote Originally Posted by PaulH2 View Post
    In my (otherwise) high DPI aware MFC application, I use a ribbon bar as the primary interface. I've provided high resolution (48x48) image strips, but when displaying on a high DPI (4k) monitor, these are not used.
    ...
    Did you provide the image with other possible resolutions?
    Victor Nijegorodov

  3. #3
    Join Date
    Jul 2016
    Posts
    2

    Re: CMFCRibbonBar High DPI

    The image strip is only a single resolution bitmap, not a series of icons, so (as far as I know) there's no way of providing more than one resolution, just the regular small and large and high DPI small and large bitmaps.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


Windows Mobile Development Center


Click Here to Expand Forum to Full Width




On-Demand Webinars (sponsored)