Tried changing how window starts

This commit is contained in:
andreja6
2018-04-29 20:00:00 -07:00
parent 09c6a73e80
commit f0f16a3a69

View File

@@ -1700,12 +1700,14 @@ int main(int argc, char** argv) {
SetWindowPos(hwndMain, NULL, 0, 0, 800, 600, NULL); SetWindowPos(hwndMain, NULL, 0, 0, 800, 600, NULL);
HMONITOR monitor = MonitorFromWindow(hwndMain, MONITOR_DEFAULTTONEAREST);
MONITORINFO lpmi;
GetMonitorInfo( monitor, &lpmi);
int widthMON = lpmi.rcMonitor.bottom;
int heightMON = lpmi.rcMonitor.right; if(GetClientRect(hwndMain, &rect))
{
width = rect.right - rect.left;
height = rect.bottom - rect.top;
}
SetWindowPos(hwnd, NULL, 0, 0, width, height, NULL);
//message = Convert(widthMON) + ", " + Convert(heightMON); //message = Convert(widthMON) + ", " + Convert(heightMON);
//messageTime = G3D::System::time(); //messageTime = G3D::System::time();