[ros-diffs] [npwoods] 19449: Regedit: Enhancements to the contextual menu in the treeview

npwoods at svn.reactos.com npwoods at svn.reactos.com
Tue Nov 22 05:54:34 CET 2005


Regedit: Enhancements to the contextual menu in the treeview

1.  Implemented Export
2.  Added a placeholder for Permissions
Modified: trunk/reactos/subsys/system/regedit/En.rc
Modified: trunk/reactos/subsys/system/regedit/childwnd.c
Modified: trunk/reactos/subsys/system/regedit/framewnd.c
Modified: trunk/reactos/subsys/system/regedit/main.h
Modified: trunk/reactos/subsys/system/regedit/resource.h
  _____  

Modified: trunk/reactos/subsys/system/regedit/En.rc
--- trunk/reactos/subsys/system/regedit/En.rc	2005-11-22 03:37:39 UTC
(rev 19448)
+++ trunk/reactos/subsys/system/regedit/En.rc	2005-11-22 04:54:18 UTC
(rev 19449)
@@ -135,9 +135,13 @@

             MENUITEM "&DWORD Value",
ID_EDIT_NEW_DWORDVALUE
         END
         MENUITEM "&Find",                           ID_EDIT_FIND,
GRAYED
+        MENUITEM SEPARATOR
         MENUITEM "&Delete",                         ID_TREE_DELETE
         MENUITEM "&Rename",                         ID_TREE_RENAME
         MENUITEM SEPARATOR
+        MENUITEM "&Export",                         ID_TREE_EXPORT
+        MENUITEM "&Permissions...",
ID_TREE_PERMISSIONS, GRAYED
+        MENUITEM SEPARATOR
         MENUITEM "&Copy Key Name",                  ID_EDIT_COPYKEYNAME
   END
 END
  _____  

Modified: trunk/reactos/subsys/system/regedit/childwnd.c
--- trunk/reactos/subsys/system/regedit/childwnd.c	2005-11-22
03:37:39 UTC (rev 19448)
+++ trunk/reactos/subsys/system/regedit/childwnd.c	2005-11-22
04:54:18 UTC (rev 19449)
@@ -145,6 +145,9 @@

                 RefreshTreeItem(pChildWnd->hTreeWnd, hSelection); /* If
delete failed; refresh to see partial results */
         }
         break;
+	case ID_TREE_EXPORT:
+        ExportRegistryFile(pChildWnd->hTreeWnd);
+        break;
     case ID_EDIT_COPYKEYNAME:
         hSelection = TreeView_GetSelection(pChildWnd->hTreeWnd);
         keyPath = GetItemPath(pChildWnd->hTreeWnd, hSelection,
&hRootKey);
  _____  

Modified: trunk/reactos/subsys/system/regedit/framewnd.c
--- trunk/reactos/subsys/system/regedit/framewnd.c	2005-11-22
03:37:39 UTC (rev 19448)
+++ trunk/reactos/subsys/system/regedit/framewnd.c	2005-11-22
04:54:18 UTC (rev 19449)
@@ -344,7 +344,7 @@

     return iResult;
 }
 
-static BOOL ExportRegistryFile(HWND hWnd)
+BOOL ExportRegistryFile(HWND hWnd)
 {
     OPENFILENAME ofn;
     TCHAR ExportKeyPath[_MAX_PATH];
  _____  

Modified: trunk/reactos/subsys/system/regedit/main.h
--- trunk/reactos/subsys/system/regedit/main.h	2005-11-22 03:37:39 UTC
(rev 19448)
+++ trunk/reactos/subsys/system/regedit/main.h	2005-11-22 04:54:18 UTC
(rev 19449)
@@ -90,6 +90,7 @@

 extern void SetupStatusBar(HWND hWnd, BOOL bResize);
 extern void UpdateStatusBar(void);
 extern BOOL CopyKeyName(HWND hWnd, HKEY hRootKey, LPCTSTR keyName);
+extern BOOL ExportRegistryFile(HWND hWnd);
 
 /* listview.c */
 extern HWND CreateListView(HWND hwndParent, int id);
  _____  

Modified: trunk/reactos/subsys/system/regedit/resource.h
--- trunk/reactos/subsys/system/regedit/resource.h	2005-11-22
03:37:39 UTC (rev 19448)
+++ trunk/reactos/subsys/system/regedit/resource.h	2005-11-22
04:54:18 UTC (rev 19449)
@@ -135,6 +135,8 @@

 #define IDS_QUERY_DELETE_KEY_CONFIRM    32877
 #define ID_TREE_SUGGESTION_MIN          32878
 #define ID_TREE_SUGGESTION_MAX          32887
+#define ID_TREE_EXPORT                  32888
+#define ID_TREE_PERMISSIONS             32889
 
 #define IDS_FLT_REGFILES		31001
 #define IDS_FLT_REGFILES_FLT		31002
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.reactos.org/pipermail/ros-diffs/attachments/20051122/9b5b859e/attachment.html


More information about the Ros-diffs mailing list