mirror of
https://github.com/reactos/reactos.git
synced 2025-01-03 21:09:19 +00:00
[DXDIAG]
- Disable call to Direct3DCreate9 [HACK] - Use the correct parent window handle when creating the system dialogs. - Fix the next page button - TODO: ReactOS needs to check whether a correct parent window handle was provided - Fixes dxdiag tab problem svn path=/trunk/; revision=59113
This commit is contained in:
parent
8765fbb397
commit
ff8f4a6ff9
3 changed files with 13 additions and 11 deletions
|
@ -214,12 +214,14 @@ InitializeDialog(HWND hwndDlg, PDISPLAY_DEVICEW pDispDevice)
|
|||
HWND hDlgCtrls[5];
|
||||
DWORD dwMemory;
|
||||
DEVMODEW DevMode;
|
||||
IDirect3D9 * ppObj;
|
||||
IDirect3D9 * ppObj = NULL;
|
||||
D3DADAPTER_IDENTIFIER9 Identifier;
|
||||
HRESULT hResult;
|
||||
|
||||
szText[0] = L'\0';
|
||||
ppObj = Direct3DCreate9(D3D_SDK_VERSION);
|
||||
|
||||
/* fix wine */
|
||||
//ppObj = Direct3DCreate9(D3D_SDK_VERSION);
|
||||
if (ppObj)
|
||||
{
|
||||
hResult = IDirect3D9_GetAdapterIdentifier(ppObj, D3DADAPTER_DEFAULT , 2/*D3DENUM_WHQL_LEVEL*/, &Identifier);
|
||||
|
|
|
@ -119,11 +119,11 @@ InitializeTabCtrl(HWND hwndDlg, PDXDIAG_CONTEXT pContext)
|
|||
pContext->hTabCtrl = hTabCtrlWnd;
|
||||
|
||||
/* create the dialogs */
|
||||
pContext->hDialogs[0] = CreateDialogParamW(hInst, MAKEINTRESOURCEW(IDD_SYSTEM_DIALOG), hTabCtrlWnd, SystemPageWndProc, (LPARAM)pContext);
|
||||
pContext->hDialogs[1] = CreateDialogParamW(hInst, MAKEINTRESOURCEW(IDD_MUSIC_DIALOG), hTabCtrlWnd, MusicPageWndProc, (LPARAM)pContext);
|
||||
pContext->hDialogs[2] = CreateDialogParamW(hInst, MAKEINTRESOURCEW(IDD_INPUT_DIALOG), hTabCtrlWnd, InputPageWndProc, (LPARAM)pContext);
|
||||
pContext->hDialogs[3] = CreateDialogParamW(hInst, MAKEINTRESOURCEW(IDD_NETWORK_DIALOG), hTabCtrlWnd, NetworkPageWndProc, (LPARAM)pContext);
|
||||
pContext->hDialogs[4] = CreateDialogParamW(hInst, MAKEINTRESOURCEW(IDD_HELP_DIALOG), hTabCtrlWnd, HelpPageWndProc, (LPARAM)pContext);
|
||||
pContext->hDialogs[0] = CreateDialogParamW(hInst, MAKEINTRESOURCEW(IDD_SYSTEM_DIALOG), pContext->hMainDialog, SystemPageWndProc, (LPARAM)pContext);
|
||||
pContext->hDialogs[1] = CreateDialogParamW(hInst, MAKEINTRESOURCEW(IDD_MUSIC_DIALOG), pContext->hMainDialog, MusicPageWndProc, (LPARAM)pContext);
|
||||
pContext->hDialogs[2] = CreateDialogParamW(hInst, MAKEINTRESOURCEW(IDD_INPUT_DIALOG), pContext->hMainDialog, InputPageWndProc, (LPARAM)pContext);
|
||||
pContext->hDialogs[3] = CreateDialogParamW(hInst, MAKEINTRESOURCEW(IDD_NETWORK_DIALOG), pContext->hMainDialog, NetworkPageWndProc, (LPARAM)pContext);
|
||||
pContext->hDialogs[4] = CreateDialogParamW(hInst, MAKEINTRESOURCEW(IDD_HELP_DIALOG), pContext->hMainDialog, HelpPageWndProc, (LPARAM)pContext);
|
||||
|
||||
/* insert tab ctrl items */
|
||||
InsertTabCtrlItem(hTabCtrlWnd, 0, MAKEINTRESOURCEW(IDS_SYSTEM_DIALOG));
|
||||
|
@ -197,9 +197,11 @@ DxDiagWndProc(HWND hwndDlg, UINT message, WPARAM wParam, LPARAM lParam)
|
|||
EnableWindow(GetDlgItem(hwndDlg, IDC_BUTTON_NEXT),
|
||||
(CurSel != TabCtrl_GetItemCount(hTabCtrlWnd) - 1));
|
||||
|
||||
/* switch to next page */
|
||||
/* switch to next tab */
|
||||
SendMessageW(hTabCtrlWnd, TCM_SETCURSEL, CurSel, 0L);
|
||||
|
||||
|
||||
/* show next page */
|
||||
TabCtrl_OnSelChange(pContext);
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
|
|
|
@ -244,8 +244,6 @@ BOOL CALLBACK DSEnumCallback(LPGUID lpGuid, LPCWSTR lpcstrDescription, LPCWSTR l
|
|||
/* set further device details */
|
||||
SetDeviceDetails(hwndDlg, &GUID_DEVCLASS_MEDIA, lpcstrDescription);
|
||||
|
||||
|
||||
|
||||
/* load sound resource string */
|
||||
szSound[0] = L'\0';
|
||||
LoadStringW(hInst, IDS_SOUND_DIALOG, szSound, sizeof(szSound)/sizeof(WCHAR));
|
||||
|
|
Loading…
Reference in a new issue