GetDpiAwareness |
Post Reply |
Author | |
andreypir
Groupie Joined: 20 August 2015 Status: Offline Points: 10 |
Post Options
Thanks(0)
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? |
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |