Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » Developing U++ » U++ Developers corner » Writing High-DPI Win32 Applications
Re: Writing High-DPI Win32 Applications [message #34846 is a reply to message #34845] Wed, 14 December 2011 14:24 Go to previous messageGo to previous message
mirek is currently offline  mirek
Messages: 13976
Registered: November 2005
Ultimate Member
Tom1 wrote on Wed, 14 December 2011 05:51

For some reason, TheIDE (ide/idewin.cpp) needs the following code instead of the previous solution to work:

static bool dpi_awareness_initializer=::SetProcessDPIAware();

#ifdef flagMAIN
GUI_APP_MAIN
#else
void AppMain___()
#endif


So I guess the universally proper place to put ::SetProcessDPIAware(); is not quite clear to me -- yet...

It needs to be before getting DPI in UPP but not called when we are building dlls.

Best regards,

Tom




Good find, thank you, adding to RM to investigate...
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Compile U++
Next Topic: Is U++ compatible with VC++ Express 2012?
Goto Forum:
  


Current Time: Sun May 12 01:58:48 CEST 2024

Total time taken to generate the page: 0.02265 seconds