DXGL r866 - Code Review
For
DXGL
(
recent comments
|
status changes
|
tags
|
authors
|
states
|
release notes
|
statistics
)
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 @@
71
71
HWND hDialog = NULL;
72
72
static BOOL EditInterlock = FALSE;
73
73
static DWORD hackstabitem = 0xFFFFFFFF;
74
+static BOOL createdialoglock = FALSE;
74
75
75
76
76
77
typedef struct
—
—
@@ -1438,6 +1439,7 @@
1439
1440
break;
1440
1441
}
1441
1442
case WM_DRAWITEM:
1443
+ if(createdialoglock) break;
1442
1444
drawitem = (DRAWITEMSTRUCT*)lParam;
1443
1445
switch (wParam)
1444
1446
{
—
—
@@ -3244,6 +3246,7 @@
3245
3247
tab.pszText = _T("About");
3246
3248
SendDlgItemMessage(hWnd, IDC_TABS, TCM_INSERTITEM, 7, (LPARAM)&tab);
3247
3249
hTab = GetDlgItem(hWnd, IDC_TABS);
3250
+ createdialoglock = TRUE;
3248
3251
hTabs[0] = CreateDialog(hinstance, MAKEINTRESOURCE(IDD_DISPLAY), hTab, (DLGPROC)DisplayTabCallback);
3249
3252
hTabs[1] = CreateDialog(hinstance, MAKEINTRESOURCE(IDD_EFFECTS), hTab, (DLGPROC)EffectsTabCallback);
3250
3253
hTabs[2] = CreateDialog(hinstance, MAKEINTRESOURCE(IDD_3DGRAPHICS), hTab, (DLGPROC)Tab3DCallback);
—
—
@@ -3252,6 +3255,7 @@
3253
3256
hTabs[5] = CreateDialog(hinstance, MAKEINTRESOURCE(IDD_HACKS), hTab, (DLGPROC)HacksTabCallback);
3254
3257
hTabs[6] = CreateDialog(hinstance, MAKEINTRESOURCE(IDD_TESTGFX), hTab, (DLGPROC)TestTabCallback);
3255
3258
hTabs[7] = CreateDialog(hinstance, MAKEINTRESOURCE(IDD_ABOUT), hTab, (DLGPROC)AboutTabCallback);
3259
+ createdialoglock = FALSE;
3256
3260
SendDlgItemMessage(hWnd, IDC_TABS, TCM_GETITEMRECT, 0, (LPARAM)&r);
3257
3261
SetWindowPos(hTabs[0], NULL, r.left, r.bottom + 3, 0, 0, SWP_SHOWWINDOW | SWP_NOSIZE);
3258
3262
ShowWindow(hTabs[1], SW_HIDE);
Navigation menu
Personal tools
Log in
Namespaces
Special page
English
expanded
collapsed
Views
More
expanded
collapsed
Search
Navigation
Home
Main page
Recent changes
Random page
MediaWiki help
Introduction
Progress
Downloads
Source code
Build from source
AppDB
Bug reports
Forums
Tools
Special pages
Printable version