Dirty lines- MFC and VC++.

Discussion in 'Microsoft Surface Pro 3' started by note3, Oct 13, 2014.

  1. note3

    note3 Member

    Joined:
    Aug 16, 2014
    Messages:
    57
    Likes Received:
    7
    Trophy Points:
    8
    Location:
    Bavaria
    My Device:
    SPro3
    Hello VS-Programmer,

    I have developed a VS program and made it running on Win8/VS 2013.
    This program works fine on a Win8-laptop.
    On the SP3 I have 2 problems:

    1.) When I move the horizontal scrollbar from left to right I often get dirty vertical lines on the right side (close to the left side of the vertical scrollbar).
    Not always, but often.
    I never saw these lines on my laptop.

    2.) The toolbar-icons on the SP3 are very small.
    What is the best way to make them larger?
     
  2. gdir

    gdir Member

    Joined:
    Aug 13, 2014
    Messages:
    75
    Likes Received:
    15
    Trophy Points:
    8
    Location:
    Germany
    My Device:
    SPro3
    Did you design the program with high-dpi displays in mind? What kind of program is it? WPF, Windows Forms or Windows Store App?
     
  3. note3

    note3 Member

    Joined:
    Aug 16, 2014
    Messages:
    57
    Likes Received:
    7
    Trophy Points:
    8
    Location:
    Bavaria
    My Device:
    SPro3
    It is a VC++ MFC-Application project and I use MM_LOMETRIC
     
  4. gdir

    gdir Member

    Joined:
    Aug 13, 2014
    Messages:
    75
    Likes Received:
    15
    Trophy Points:
    8
    Location:
    Germany
    My Device:
    SPro3
    I can't help with MFC and VC++. I'm working with C# and WPF most of the times.
     
  5. surfdock

    surfdock Active Member

    Joined:
    Jan 21, 2014
    Messages:
    199
    Likes Received:
    47
    Trophy Points:
    28
    Location:
    Seattle, WA
    My Device:
    SPro3
    Please see this post for info on enabling dpi_Aware in your app:
    http://blogs.msdn.com/b/vcblog/arch...lications-now-default-to-being-dpi-aware.aspx

    Note this is several years old, but is a good intro. You'll want to get the latest info from MSDN if you're using VS2012/VS2013.


    Also, can you take a screen shot or use the snipping tool to show the visual glitches you're seeing with the scroll bars?


    Either way, your best bet to get support is via the MSDN forums, not via this website. Your issue is likely not specific to Surface, but something that would be seen on any hi-dpi laptop.
     
    note3 likes this.
  6. note3

    note3 Member

    Joined:
    Aug 16, 2014
    Messages:
    57
    Likes Received:
    7
    Trophy Points:
    8
    Location:
    Bavaria
    My Device:
    SPro3
    The link helped me a lot, thank you.
     

Share This Page