mirror of
https://github.com/reactos/reactos.git
synced 2024-12-29 02:25:17 +00:00
[APPWIZ] Make shortcut name selected on creation (#2184)
This commit is contained in:
parent
f86a0e41ac
commit
6d739cb2ce
1 changed files with 6 additions and 1 deletions
|
@ -275,8 +275,11 @@ WelcomeDlgProc(HWND hwndDlg,
|
|||
break;
|
||||
|
||||
if (SHGetPathFromIDListW(pidllist, szPath))
|
||||
{
|
||||
SetDlgItemTextW(hwndDlg, IDC_SHORTCUT_LOCATION, szPath);
|
||||
|
||||
SendDlgItemMessageW(hwndDlg, IDC_SHORTCUT_LOCATION, WM_SETFOCUS, 0, 0);
|
||||
SendDlgItemMessageW(hwndDlg, IDC_SHORTCUT_LOCATION, EM_SETSEL, 0, -1);
|
||||
}
|
||||
/* Free memory, if possible */
|
||||
CoTaskMemFree(pidllist);
|
||||
break;
|
||||
|
@ -405,6 +408,8 @@ FinishDlgProc(HWND hwndDlg,
|
|||
/* TODO: Use shell32!PathCleanupSpec instead of DoConvertNameForFileSystem */
|
||||
DoConvertNameForFileSystem(pContext->szDescription);
|
||||
SetDlgItemTextW(hwndDlg, IDC_SHORTCUT_NAME, pContext->szDescription);
|
||||
SendDlgItemMessageW(hwndDlg, IDC_SHORTCUT_NAME, EM_SETSEL, 0, -1);
|
||||
SetFocus(GetDlgItem(hwndDlg, IDC_SHORTCUT_NAME));
|
||||
}
|
||||
else if (lppsn->hdr.code == PSN_WIZFINISH)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue