DXGL r866 - Code Review

Jump to navigation Jump to search
Repository:DXGL
Revision:r865‎ | r866 | r867 >
Date:12:21, 15 September 2018
Author:admin
Status:new
Tags:
Comment:
Allow DXGL Config to start on Windows 2000
Modified paths:
  • /dxglcfg/dxglcfg.cpp (modified) (history)

Diff [purge]

Index: dxglcfg/dxglcfg.cpp
@@ -70,6 +70,7 @@
7171 HWND hDialog = NULL;
7272 static BOOL EditInterlock = FALSE;
7373 static DWORD hackstabitem = 0xFFFFFFFF;
 74+static BOOL createdialoglock = FALSE;
7475
7576
7677 typedef struct
@@ -1438,6 +1439,7 @@
14391440 break;
14401441 }
14411442 case WM_DRAWITEM:
 1443+ if(createdialoglock) break;
14421444 drawitem = (DRAWITEMSTRUCT*)lParam;
14431445 switch (wParam)
14441446 {
@@ -3244,6 +3246,7 @@
32453247 tab.pszText = _T("About");
32463248 SendDlgItemMessage(hWnd, IDC_TABS, TCM_INSERTITEM, 7, (LPARAM)&tab);
32473249 hTab = GetDlgItem(hWnd, IDC_TABS);
 3250+ createdialoglock = TRUE;
32483251 hTabs[0] = CreateDialog(hinstance, MAKEINTRESOURCE(IDD_DISPLAY), hTab, (DLGPROC)DisplayTabCallback);
32493252 hTabs[1] = CreateDialog(hinstance, MAKEINTRESOURCE(IDD_EFFECTS), hTab, (DLGPROC)EffectsTabCallback);
32503253 hTabs[2] = CreateDialog(hinstance, MAKEINTRESOURCE(IDD_3DGRAPHICS), hTab, (DLGPROC)Tab3DCallback);
@@ -3252,6 +3255,7 @@
32533256 hTabs[5] = CreateDialog(hinstance, MAKEINTRESOURCE(IDD_HACKS), hTab, (DLGPROC)HacksTabCallback);
32543257 hTabs[6] = CreateDialog(hinstance, MAKEINTRESOURCE(IDD_TESTGFX), hTab, (DLGPROC)TestTabCallback);
32553258 hTabs[7] = CreateDialog(hinstance, MAKEINTRESOURCE(IDD_ABOUT), hTab, (DLGPROC)AboutTabCallback);
 3259+ createdialoglock = FALSE;
32563260 SendDlgItemMessage(hWnd, IDC_TABS, TCM_GETITEMRECT, 0, (LPARAM)&r);
32573261 SetWindowPos(hTabs[0], NULL, r.left, r.bottom + 3, 0, 0, SWP_SHOWWINDOW | SWP_NOSIZE);
32583262 ShowWindow(hTabs[1], SW_HIDE);