Mike
Try playing with this in ProcessMenu
case MENU_LIGHTSETTING: // PAT: 01-30-2018
if (IsWindow(gP.hOverlay)) {
long OverLayVisible = IsWindowVisible(gP.hOverlay);
GetWindowRect(gP.hGL, &lpr);
if (OverLayVisible) {
for (long w = OVERLAY_WIDTH; w >= 0; w-=1) {
MoveWindow(gP.hOverlay, lpr.left, lpr.top, w, Height(lpr), true);
}
ShowWindow(gP.hOverlay, SW_HIDE);
SetWindowPos(gP.hOverlay, HWND_NOTOPMOST, 0, 0, 0, 0, SWP_NOMOVE | SWP_NOSIZE); // PAT: 02-12-2018
} else {
//MoveWindow(gP.hOverlay, lpr.left, lpr.top, OVERLAY_WIDTH, Height(lpr), false);
ShowWindow(gP.hOverlay, SW_SHOW);
if (gP.nIsFullScreen) { SetWindowPos(gP.hOverlay, HWND_TOPMOST, 0, 0, 0, 0, SWP_NOMOVE | SWP_NOSIZE); } // PAT: 02-12-2018
for (long w = 0; w <= OVERLAY_WIDTH; w++) {
if (w % 20 == 0) {
MoveWindow(gP.hOverlay, lpr.left, lpr.top, w, Height(lpr), false);
WindowRedraw(gP.hOverlay);
gP.redraw = -1; gl_DrawScene();
}
}
MoveWindow(gP.hOverlay, lpr.left, lpr.top, OVERLAY_WIDTH, Height(lpr), true);
}
SetFocus(gP.hGL);
gP.redraw = -1; // Redraw the OpenGL scene
}
break;