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 #34845 is a reply to message #34841] Wed, 14 December 2011 11:51 Go to previous messageGo to previous message
Tom1
Messages: 1213
Registered: March 2007
Senior Contributor
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

 
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: Sat May 11 20:26:23 CEST 2024

Total time taken to generate the page: 0.01702 seconds