regedit: Add support for creating expandable string values.
Francois Gouget
fgouget at codeweavers.com
Fri Apr 1 03:39:50 CDT 2011
---
programs/regedit/framewnd.c | 3 +++
programs/regedit/regedit.rc | 2 ++
programs/regedit/resource.h | 1 +
3 files changed, 6 insertions(+), 0 deletions(-)
diff --git a/programs/regedit/framewnd.c b/programs/regedit/framewnd.c
index d6f959d..c118b59 100644
--- a/programs/regedit/framewnd.c
+++ b/programs/regedit/framewnd.c
@@ -788,6 +788,9 @@ static BOOL _CmdWndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam)
case ID_EDIT_NEW_STRINGVALUE:
valueType = REG_SZ;
goto create_value;
+ case ID_EDIT_NEW_EXPANDVALUE:
+ valueType = REG_EXPAND_SZ;
+ goto create_value;
case ID_EDIT_NEW_MULTI_STRINGVALUE:
valueType = REG_MULTI_SZ;
goto create_value;
diff --git a/programs/regedit/regedit.rc b/programs/regedit/regedit.rc
index 7d0a3fd..37bc5ee 100644
--- a/programs/regedit/regedit.rc
+++ b/programs/regedit/regedit.rc
@@ -49,6 +49,7 @@ BEGIN
MENUITEM "&Binary Value", ID_EDIT_NEW_BINARYVALUE
MENUITEM "&DWORD Value", ID_EDIT_NEW_DWORDVALUE
MENUITEM "&Multi String Value", ID_EDIT_NEW_MULTI_STRINGVALUE
+ MENUITEM "&Expandable String Value", ID_EDIT_NEW_EXPANDVALUE
END
MENUITEM SEPARATOR
MENUITEM "&Delete\tDel", ID_EDIT_DELETE
@@ -100,6 +101,7 @@ BEGIN
MENUITEM "&Binary Value", ID_EDIT_NEW_BINARYVALUE
MENUITEM "&DWORD Value", ID_EDIT_NEW_DWORDVALUE
MENUITEM "&Multi String Value", ID_EDIT_NEW_MULTI_STRINGVALUE
+ MENUITEM "&Expandable String Value", ID_EDIT_NEW_EXPANDVALUE
END
MENUITEM SEPARATOR
MENUITEM "&Delete\tDel", ID_EDIT_DELETE
diff --git a/programs/regedit/resource.h b/programs/regedit/resource.h
index 6eb66c7..020765e 100644
--- a/programs/regedit/resource.h
+++ b/programs/regedit/resource.h
@@ -138,6 +138,7 @@
#define ID_FAVORITE_LAST 33099
#define ID_EDIT_NEW_MULTI_STRINGVALUE 33100
#define ID_EDIT_EXPORT 33101
+#define ID_EDIT_NEW_EXPANDVALUE 33102
#define IDD_EDIT_STRING 2000
#define IDC_VALUE_NAME 2001
--
1.7.4.1
More information about the wine-patches
mailing list