Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.basic.misc > #420
| From | Deanna Earley <dee@earlsoft.co.uk> |
|---|---|
| Newsgroups | comp.os.ms-windows.programmer.win32, comp.lang.basic.misc, microsoft.public.vb.general.discussion, microsoft.public.win32.programmer.ui |
| Subject | Window rectangles including the imaginary border |
| Date | 2015-12-08 11:43 +0000 |
| Organization | A noiseless patient Spider |
| Message-ID | <n46frv$79e$1@dont-email.me> (permalink) |
Cross-posted to 4 groups.
Hi all. I'm currently having a fight with Windows 10 and DWM where Windows is lying about the window rectangle. This seems to be for compatibility with broken apps that assume a fixed width border, but I can find no way to fully work with the real, DWM rectangle. The code is VB6 but it also affects GetWindowRect and SetWindowPos. There are supposedly various ways to get them to give the real rectangle but I can't get any of them to do the job. 1) DPI awareness manifest 2) Windows 6.0 subsystem in the PE header 3) XP themes/manifest 4) Vista privileges/aware manifest 5) Windows Vista, 7, 8, 8.1 and 10 awareness manifest My final effort was to get the difference between the Aero and Win32 reported rectangle, but this only gives the correct results AFTER the window has been shown. Other details and a screenshot at: http://stackoverflow.com/q/8838621/588306 Can anyone shed any light on this and how I can work with the real rectangle directly? Thanks -- Deanna Earley (dee@earlsoft.co.uk, dee@doesnotcompute.co.uk) (Replies direct to my email address will be printed, shredded then fed to the rats. Please reply to the group.)
Back to comp.lang.basic.misc | Previous | Next | Find similar
Window rectangles including the imaginary border Deanna Earley <dee@earlsoft.co.uk> - 2015-12-08 11:43 +0000
csiph-web