Addendum for those who use Code::Blocks as portable IDE
Tim's suggestion creates a registry setting on the computer that you're currently working on.
(HKEY_CURRENT_USER\Software\Microsoft\Windows NT\CurrentVersion\AppCompatFlags\Layers)
That means if you run Code::Blocks e.g. from a USB pen drive on different machines (like I do) you would have to renew this setting on every computer that you're using it. To get rid of this annoying settings you can just write a batch script (ASCII text file with extension .bat instead of .txt) where you set the __COMPAT_LAYER environment variable to the value used to override High DPI and run codeblocks.exe. It's just one line of script code.
_CodeBlocks.bat
@set "__COMPAT_LAYER=~ HIGHDPIAWARE" & start "" /max "codeblocks.exe"
Save it in the same folder along with codeblocks.exe and run this script instead.
Steffen
I'm just trying to give something back to the forum where I've been helped :)
Steffen
Thanks.
In fact, I use C::B in a portable way, see the command I used for the batch file:
@set "__COMPAT_LAYER=~ HIGHDPIAWARE" & start "" /max "CbLauncher.exe"
This works nicely under Win7, so I think I don't need to use the resource editor to hack the codeblocks.exe. :)