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 |
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
|
|
|
Goto Forum:
Current Time: Sat May 11 20:26:23 CEST 2024
Total time taken to generate the page: 0.01702 seconds
|