mirror of
https://github.com/reactos/reactos.git
synced 2026-05-31 16:31:07 +08:00
[SHELL32] Call SHAutoComplete on 'Run' dialog
CORE-9281
This commit is contained in:
@@ -500,6 +500,8 @@ static void EnableOkButtonFromEditContents(HWND hwnd)
|
||||
static INT_PTR CALLBACK RunDlgProc(HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam)
|
||||
{
|
||||
RUNFILEDLGPARAMS *prfdp = (RUNFILEDLGPARAMS *)GetWindowLongPtrW(hwnd, DWLP_USER);
|
||||
HWND hwndCombo, hwndEdit;
|
||||
COMBOBOXINFO ComboInfo;
|
||||
|
||||
switch (message)
|
||||
{
|
||||
@@ -538,9 +540,16 @@ static INT_PTR CALLBACK RunDlgProc(HWND hwnd, UINT message, WPARAM wParam, LPARA
|
||||
// SendMessageW(hwnd, WM_SETICON, ICON_SMALL, (LPARAM)prfdp->hIcon);
|
||||
SendMessageW(GetDlgItem(hwnd, IDC_RUNDLG_ICON), STM_SETICON, (WPARAM)prfdp->hIcon, 0);
|
||||
|
||||
FillList(GetDlgItem(hwnd, IDC_RUNDLG_EDITPATH), NULL, 0, (prfdp->uFlags & RFF_NODEFAULT) == 0);
|
||||
hwndCombo = GetDlgItem(hwnd, IDC_RUNDLG_EDITPATH);
|
||||
FillList(hwndCombo, NULL, 0, (prfdp->uFlags & RFF_NODEFAULT) == 0);
|
||||
EnableOkButtonFromEditContents(hwnd);
|
||||
SetFocus(GetDlgItem(hwnd, IDC_RUNDLG_EDITPATH));
|
||||
|
||||
ComboInfo.cbSize = sizeof(ComboInfo);
|
||||
GetComboBoxInfo(hwndCombo, &ComboInfo);
|
||||
hwndEdit = ComboInfo.hwndItem;
|
||||
SHAutoComplete(hwndEdit, SHACF_FILESYSTEM | SHACF_FILESYS_ONLY | SHACF_URLALL);
|
||||
|
||||
SetFocus(hwndCombo);
|
||||
return TRUE;
|
||||
|
||||
case WM_COMMAND:
|
||||
|
||||
Reference in New Issue
Block a user