Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-cw
Commits
96653ca6
Commit
96653ca6
authored
May 17, 2008
by
Alexander Nicolaysen Sørnes
Committed by
Alexandre Julliard
May 19, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
regedit: Add Export option to context menu.
parent
47b49601
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
10 additions
and
4 deletions
+10
-4
En.rc
programs/regedit/En.rc
+1
-0
No.rc
programs/regedit/No.rc
+1
-0
framewnd.c
programs/regedit/framewnd.c
+7
-4
resource.h
programs/regedit/resource.h
+1
-0
No files found.
programs/regedit/En.rc
View file @
96653ca6
...
...
@@ -175,6 +175,7 @@ BEGIN
MENUITEM "&Delete\tDel", ID_EDIT_DELETE
MENUITEM "&Rename\tF2", ID_EDIT_RENAME
MENUITEM SEPARATOR
MENUITEM "&Export . . .", ID_EDIT_EXPORT
MENUITEM "&Copy Key Name", ID_EDIT_COPYKEYNAME
MENUITEM SEPARATOR
MENUITEM "&Find\tCtrl+F", ID_EDIT_FIND, GRAYED
...
...
programs/regedit/No.rc
View file @
96653ca6
...
...
@@ -106,6 +106,7 @@ BEGIN
MENUITEM "&Slett\tDel", ID_EDIT_DELETE
MENUITEM "&Gi nytt navn\tF2", ID_EDIT_RENAME
MENUITEM SEPARATOR
MENUITEM "&Eksporter . . .", ID_EDIT_EXPORT
MENUITEM "&Kopier nkkelnavn", ID_EDIT_COPYKEYNAME
MENUITEM SEPARATOR
MENUITEM "&Finn\tCtrl+F", ID_EDIT_FIND, GRAYED
...
...
programs/regedit/framewnd.c
View file @
96653ca6
...
...
@@ -277,7 +277,7 @@ static UINT CALLBACK ExportRegistryFile_OFNHookProc(HWND hdlg, UINT uiMsg, WPARA
path
=
GetItemFullPath
(
g_pChildWnd
->
hTreeWnd
,
NULL
,
FALSE
);
SendDlgItemMessage
(
hdlg
,
IDC_EXPORT_PATH
,
WM_SETTEXT
,
0
,
(
LPARAM
)
path
);
HeapFree
(
GetProcessHeap
(),
0
,
path
);
CheckRadioButton
(
hdlg
,
IDC_EXPORT_ALL
,
IDC_EXPORT_SELECTED
,
IDC_EXPORT_ALL
);
CheckRadioButton
(
hdlg
,
IDC_EXPORT_ALL
,
IDC_EXPORT_SELECTED
,
pOpenFileName
->
lCustData
?
IDC_EXPORT_SELECTED
:
IDC_EXPORT_ALL
);
break
;
case
CDN_FILEOK
:
ExportRegistryFile_StoreSelection
(
hdlg
,
pOpenFileName
);
...
...
@@ -332,7 +332,7 @@ static BOOL ImportRegistryFile(HWND hWnd)
}
static
BOOL
ExportRegistryFile
(
HWND
hWnd
)
static
BOOL
ExportRegistryFile
(
HWND
hWnd
,
BOOL
export_branch
)
{
OPENFILENAME
ofn
;
TCHAR
ExportKeyPath
[
_MAX_PATH
];
...
...
@@ -342,7 +342,7 @@ static BOOL ExportRegistryFile(HWND hWnd)
InitOpenFileName
(
hWnd
,
&
ofn
);
LoadString
(
hInst
,
IDS_FILEDIALOG_EXPORT_TITLE
,
title
,
COUNT_OF
(
title
));
ofn
.
lpstrTitle
=
title
;
ofn
.
lCustData
=
0
;
ofn
.
lCustData
=
export_branch
;
ofn
.
Flags
=
OFN_ENABLETEMPLATE
|
OFN_ENABLEHOOK
|
OFN_EXPLORER
|
OFN_HIDEREADONLY
|
OFN_OVERWRITEPROMPT
;
ofn
.
lpfnHook
=
ExportRegistryFile_OFNHookProc
;
ofn
.
lpTemplateName
=
MAKEINTRESOURCE
(
IDD_EXPORT_TEMPLATE
);
...
...
@@ -635,8 +635,11 @@ static BOOL _CmdWndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam)
case
ID_REGISTRY_IMPORTREGISTRYFILE
:
ImportRegistryFile
(
hWnd
);
break
;
case
ID_EDIT_EXPORT
:
ExportRegistryFile
(
hWnd
,
TRUE
);
break
;
case
ID_REGISTRY_EXPORTREGISTRYFILE
:
ExportRegistryFile
(
hWnd
);
ExportRegistryFile
(
hWnd
,
FALSE
);
break
;
case
ID_REGISTRY_CONNECTNETWORKREGISTRY
:
break
;
...
...
programs/regedit/resource.h
View file @
96653ca6
...
...
@@ -133,6 +133,7 @@
#define ID_FAVORITE_FIRST 33000
#define ID_FAVORITE_LAST 33099
#define ID_EDIT_NEW_MULTI_STRINGVALUE 33100
#define ID_EDIT_EXPORT 33101
#define IDD_EDIT_STRING 2000
#define IDC_VALUE_NAME 2001
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment