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

GetDpiAwareness

 Post Reply Post Reply
Author
Message
andreypir View Drop Down
Groupie
Groupie
Avatar

Joined: 20 August 2015
Status: Offline
Points: 10
Post Options Post Options   Thanks (0) Thanks(0)   Quote andreypir Quote  Post ReplyReply Direct Link To This Post Topic: GetDpiAwareness
    Posted: 13 March 2024 at 7:33pm
What is the expected way to use CXTPDpi::GetDpiAwareness? When I call it, it tries to call the system GetProcessDpiAwareness but the function is unavailable because InitDpiAwareness was not called, so it returns xtpDpiUnaware regardless of the actual state of my process. The actual state is set in the project properties.
 
InitDpiAwareness is declared as private. So the only way I can find is to first get my process awareness outside of CXTPDpi, put that into CXTPDpi::SetDpiAwareness and then call GetDpiAwareness to get the value I already know.
 
Is there a better way?
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.172 seconds.