GS 7.801 Pro
Windows Vista
I want a resizeable window with a maximize button so I am using:
video_window(NULL, NULL, 4+16+32+64+128, 0);
I've defined:
on_maximize = MaximizeEvent;
on_resize = ResizeEvent;
function ResizeEvent(){
RECT r;
GetClientRect(hWnd,&r);
video_set(r.right,r.bottom,0,0);
}
function MaximizeEvent(){
RECT r;
GetClientRect(hWnd,&r);
video_set(r.right,r.bottom,0,0);
}
The window is resizeable, maximizeable, and automatically adjusts resolution correctly. The problem is, with multiple monitors, it does not maximize correctly on the primary monitor. A little bit of the border hangs over to the secondary monitor. The overhanging border does not occur without the thick resizeable border:
video_window(NULL, NULL, 16+32+64+128, 0);
I've noticed that the overhanging border only occurs when maximized on the primary monitor when the start bar is in a horizontal configuration on the primary monitor. Even if the start bar is on the secondary monitor, there is no border overhanging problem maximizing on the secondary monitor
I tried removing the resizeable border in the MaximizeEvent function, but that unmaximizes the window.
Also there is a problem of maximizing the window on a window that has negative coordinates as I've
posted earlier that jcl said he would look in to.