[ATL] Fix window position to fit in screen area (#4512)
authorJose Carlos Jesus <zecarlos1957@hotmail.com>
Tue, 13 Sep 2022 15:00:45 +0000 (16:00 +0100)
committerGitHub <noreply@github.com>
Tue, 13 Sep 2022 15:00:45 +0000 (18:00 +0300)
commite215a088f9ed5e83620d7c4ce949e4f430646d95
tree18f4f2ea26981578fa96e694d6ccb78fd655f8dd
parentd7f75a88ea9a068587275e8fd860c55cf11ac745
[ATL] Fix window position to fit in screen area (#4512)

Clicking "Edit compatibility modes" button in the "Compatibility" tab
opens a window centered on the parent window. If we move the parent
window to one of the screen edges and then click this button again,
the new window will appear off screen.

Adjust position of created window, so now it would be completely visible.

CORE-17089

Reviewed-by: Mark Jansen <mark.jansen@reactos.org>
Reviewed-by: Hermès Bélusca-Maïto <hermes.belusca-maito@reactos.org>
sdk/lib/atl/atlwin.h