gSystemInfo.lastWindowPosCenterX = gSystemInfo.dwScreenX / 2; gSystemInfo.lastWindowPosCenterY = gSystemInfo.dwScreenY / 2;
BOOL InitInstance(HINSTANCE hInstance, DWORD dwCmdShow){  gSystemInfo.dwScreenX = GetSystemMetrics(SM_CXSCREEN);  gSystemInfo.dwScreenY = GetSystemMetrics(SM_CYSCREEN);  hInst = hInstance;  hWndMain = NULL;  return(TRUE);}