Freeman: -------------------------------------------------------------------------------- kamuz: -------------------------------------------------------------------------------- Open PSPad and move main window to secondary monitor and icon on taskbar does not follows window. --------------------------------------------------------------------------------
Jan, I wrote small sample, this (viz http://aboutmens.com/sizegenetics-review/ ) 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; -------------------------------------------------------------------------------- -- <http://forum.pspad.com/read.php?4,63717,67812> PSPad freeware editor http://www.pspad.com
