If that happens does the Desktop dimension of the PC changes ?
dDesktop := Dimension{GetSystemMetrics(SM_CXVIRTUALSCREEN),GetSystemMetrics(SM_CYVIRTUALSCREEN)}
If that is the case you could set a timer in the shellwindow and check
if MyShellWinwod:Origin:X+MyShellwindow:Size:Width > dDesktop:Width
if that is the case make the origin of the shellwindow 0,0 and it will
be back on the primary monitor
John
Op 23-8-2023 om 19:50 schreef
[email protected]:
Greetings:
I'm having the problem that when the application is been shown in a second monitor and the user disconnect the second monitor, then the application doesn't move to the first monitor.
Thanks,
Any help would be appreciate
Juan
--- SoupGate-Win32 v1.05
* Origin: fsxNet Usenet Gateway (21:1/5)