You are here: PSPad forum > Bug report / Hlášení chyb > Using Multiple Displays

Using Multiple Displays

Goto Page: Previous1 2 3

#21 Re: Using Multiple Displays

Posted by: pspad | Date: 02/06/2017 08:47 | IP: IP Logged

CieraBrier:
Freeman:
Jan, I wrote small sample, but cannot test it, because I have only one monitor:

TMainForm = class(TForm)
protected
procedure WMWindowPosChanged(var Msg: TWMWindowPosChanged); message WM_WINDOWPOSCHANGED;
end;

procedure TMainForm.WMWindowPosChanged(var Msg: TWMWindowPosChanged);
begin
inherited;
if not (csLoading in ComponentState) then
with Msg.WindowPos^ do
MoveWindow(Application.Handle, x, y, cx, cy, True);
end;

This caused wrong Window border on Windows 10

Options: Reply | Quote | Up ^


Goto Page: Previous1 2 3





Editor PSPad - freeware editor, © 2001 - 2017 Jan Fiala
Hosted by Webhosting TOJEONO.CZ, design by WebDesign PAY & SOFT, code Petr Dvořák