mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-08-31 19:26:42 +00:00
Select currently selected mode by default
svn path=/trunk/; revision=29228
This commit is contained in:
@@ -85,7 +85,7 @@ InitListAllModesDialog(PDESKDISPLAYADAPTER This,
|
||||
HWND hwndListAllModesDlg)
|
||||
{
|
||||
TCHAR szFormat[64], szBuffer[64], szColors[64], szRefreshRate[64];
|
||||
PDEVMODEW lpDevMode;
|
||||
PDEVMODEW lpDevMode, lpCurrentDevMode;
|
||||
DWORD dwIndex = 0;
|
||||
INT i;
|
||||
|
||||
@@ -99,6 +99,8 @@ InitListAllModesDialog(PDESKDISPLAYADAPTER This,
|
||||
szFormat[0] = TEXT('\0');
|
||||
}
|
||||
|
||||
lpCurrentDevMode = This->DeskExtInterface->GetCurrentMode(This->DeskExtInterface->Context);
|
||||
|
||||
do
|
||||
{
|
||||
lpDevMode = This->DeskExtInterface->EnumAllModes(This->DeskExtInterface->Context,
|
||||
@@ -133,6 +135,15 @@ InitListAllModesDialog(PDESKDISPLAYADAPTER This,
|
||||
LB_SETITEMDATA,
|
||||
(WPARAM)i,
|
||||
(LPARAM)lpDevMode);
|
||||
|
||||
if (lpDevMode == lpCurrentDevMode)
|
||||
{
|
||||
SendDlgItemMessage(hwndListAllModesDlg,
|
||||
IDC_ALLVALIDMODES,
|
||||
LB_SETCURSEL,
|
||||
(WPARAM)i,
|
||||
0);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -300,7 +311,6 @@ DisplayAdapterDlgProc(HWND hwndDlg,
|
||||
break;
|
||||
|
||||
case IDC_LISTALLMODES:
|
||||
MessageBox(hwndDlg, _T("Bla"), NULL, 0);
|
||||
ShowListAllModes(This);
|
||||
break;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user