mirror of
https://github.com/reactos/reactos.git
synced 2024-10-04 08:25:53 +00:00
don't allow renaming of root keys
See issue #2508 for more details. svn path=/trunk/; revision=28052
This commit is contained in:
parent
b430b691ac
commit
fd37f2607a
|
@ -506,6 +506,16 @@ LRESULT CALLBACK ChildWndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lPa
|
||||||
case NM_SETFOCUS:
|
case NM_SETFOCUS:
|
||||||
pChildWnd->nFocusPanel = 0;
|
pChildWnd->nFocusPanel = 0;
|
||||||
break;
|
break;
|
||||||
|
case TVN_BEGINLABELEDIT:
|
||||||
|
{
|
||||||
|
LPNMTVDISPINFO ptvdi;
|
||||||
|
/* cancel label edit for rootkeys */
|
||||||
|
ptvdi = (LPNMTVDISPINFO) lParam;
|
||||||
|
if (!TreeView_GetParent(pChildWnd->hTreeWnd, ptvdi->item.hItem) ||
|
||||||
|
!TreeView_GetParent(pChildWnd->hTreeWnd, TreeView_GetParent(pChildWnd->hTreeWnd, ptvdi->item.hItem)))
|
||||||
|
return TRUE;
|
||||||
|
break;
|
||||||
|
}
|
||||||
case TVN_ENDLABELEDIT:
|
case TVN_ENDLABELEDIT:
|
||||||
{
|
{
|
||||||
LPCTSTR keyPath;
|
LPCTSTR keyPath;
|
||||||
|
|
Loading…
Reference in a new issue