mirror of
git://source.winehq.org/git/wine.git
synced 2024-09-18 10:38:34 +00:00
regedit: Set selected key name as default favourite name.
This commit is contained in:
parent
bb0eefb939
commit
c1940e397e
|
@ -506,9 +506,17 @@ static INT_PTR CALLBACK addtofavorites_dlgproc(HWND hwndDlg, UINT uMsg, WPARAM w
|
||||||
|
|
||||||
switch(uMsg) {
|
switch(uMsg) {
|
||||||
case WM_INITDIALOG:
|
case WM_INITDIALOG:
|
||||||
|
{
|
||||||
|
HKEY hKeyRoot = NULL;
|
||||||
|
LPSTR ItemPath = GetItemPath(g_pChildWnd->hTreeWnd, NULL, &hKeyRoot);
|
||||||
|
|
||||||
|
if(!ItemPath || !*ItemPath)
|
||||||
|
ItemPath = GetItemFullPath(g_pChildWnd->hTreeWnd, NULL, FALSE);
|
||||||
EnableWindow(GetDlgItem(hwndDlg, IDOK), FALSE);
|
EnableWindow(GetDlgItem(hwndDlg, IDOK), FALSE);
|
||||||
|
SetWindowText(hwndValue, ItemPath);
|
||||||
SendMessage(hwndValue, EM_SETLIMITTEXT, 127, 0);
|
SendMessage(hwndValue, EM_SETLIMITTEXT, 127, 0);
|
||||||
return TRUE;
|
return TRUE;
|
||||||
|
}
|
||||||
case WM_COMMAND:
|
case WM_COMMAND:
|
||||||
switch(LOWORD(wParam)) {
|
switch(LOWORD(wParam)) {
|
||||||
case IDC_VALUE_NAME:
|
case IDC_VALUE_NAME:
|
||||||
|
|
Loading…
Reference in a new issue