Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
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-winehq
Commits
5cb8bccf
Commit
5cb8bccf
authored
Aug 10, 2008
by
Alexander Nicolaysen Sørnes
Committed by
Alexandre Julliard
Aug 20, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
regedit: Convert printing&help to unicode.
parent
04929756
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
8 deletions
+17
-8
framewnd.c
programs/regedit/framewnd.c
+17
-8
No files found.
programs/regedit/framewnd.c
View file @
5cb8bccf
...
@@ -375,10 +375,10 @@ static BOOL ExportRegistryFile(HWND hWnd, BOOL export_branch)
...
@@ -375,10 +375,10 @@ static BOOL ExportRegistryFile(HWND hWnd, BOOL export_branch)
return
TRUE
;
return
TRUE
;
}
}
static
BOOL
PrintRegistryHive
(
HWND
hWnd
,
LPC
T
STR
path
)
static
BOOL
PrintRegistryHive
(
HWND
hWnd
,
LPC
W
STR
path
)
{
{
#if 1
#if 1
PRINTDLG
pd
;
PRINTDLG
W
pd
;
ZeroMemory
(
&
pd
,
sizeof
(
PRINTDLG
));
ZeroMemory
(
&
pd
,
sizeof
(
PRINTDLG
));
pd
.
lStructSize
=
sizeof
(
PRINTDLG
);
pd
.
lStructSize
=
sizeof
(
PRINTDLG
);
...
@@ -391,15 +391,15 @@ static BOOL PrintRegistryHive(HWND hWnd, LPCTSTR path)
...
@@ -391,15 +391,15 @@ static BOOL PrintRegistryHive(HWND hWnd, LPCTSTR path)
pd
.
nToPage
=
0xFFFF
;
pd
.
nToPage
=
0xFFFF
;
pd
.
nMinPage
=
1
;
pd
.
nMinPage
=
1
;
pd
.
nMaxPage
=
0xFFFF
;
pd
.
nMaxPage
=
0xFFFF
;
if
(
PrintDlg
(
&
pd
))
{
if
(
PrintDlg
W
(
&
pd
))
{
/* GDI calls to render output. */
/* GDI calls to render output. */
DeleteDC
(
pd
.
hDC
);
/* Delete DC when done.*/
DeleteDC
(
pd
.
hDC
);
/* Delete DC when done.*/
}
}
#else
#else
HRESULT
hResult
;
HRESULT
hResult
;
PRINTDLGEX
pd
;
PRINTDLGEX
W
pd
;
hResult
=
PrintDlgEx
(
&
pd
);
hResult
=
PrintDlgEx
W
(
&
pd
);
if
(
hResult
==
S_OK
)
{
if
(
hResult
==
S_OK
)
{
switch
(
pd
.
dwResultAction
)
{
switch
(
pd
.
dwResultAction
)
{
case
PD_RESULT_APPLY
:
case
PD_RESULT_APPLY
:
...
@@ -671,8 +671,11 @@ static BOOL _CmdWndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam)
...
@@ -671,8 +671,11 @@ static BOOL _CmdWndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam)
case
ID_REGISTRY_DISCONNECTNETWORKREGISTRY
:
case
ID_REGISTRY_DISCONNECTNETWORKREGISTRY
:
break
;
break
;
case
ID_REGISTRY_PRINT
:
case
ID_REGISTRY_PRINT
:
PrintRegistryHive
(
hWnd
,
_T
(
""
));
{
const
WCHAR
empty
=
0
;
PrintRegistryHive
(
hWnd
,
empty
);
break
;
break
;
}
case
ID_EDIT_DELETE
:
case
ID_EDIT_DELETE
:
if
(
GetFocus
()
==
g_pChildWnd
->
hTreeWnd
)
{
if
(
GetFocus
()
==
g_pChildWnd
->
hTreeWnd
)
{
WCHAR
*
keyPathW
=
GetWideString
(
keyPath
);
WCHAR
*
keyPathW
=
GetWideString
(
keyPath
);
...
@@ -842,8 +845,11 @@ static BOOL _CmdWndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam)
...
@@ -842,8 +845,11 @@ static BOOL _CmdWndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam)
toggle_child
(
hWnd
,
LOWORD
(
wParam
),
hStatusBar
);
toggle_child
(
hWnd
,
LOWORD
(
wParam
),
hStatusBar
);
break
;
break
;
case
ID_HELP_HELPTOPICS
:
case
ID_HELP_HELPTOPICS
:
WinHelp
(
hWnd
,
_T
(
"regedit"
),
HELP_FINDER
,
0
);
{
const
WCHAR
help_regedit
[]
=
{
'r'
,
'e'
,
'g'
,
'e'
,
'd'
,
'i'
,
't'
,
0
};
WinHelpW
(
hWnd
,
help_regedit
,
HELP_FINDER
,
0
);
break
;
break
;
}
case
ID_HELP_ABOUT
:
case
ID_HELP_ABOUT
:
ShowAboutBox
(
hWnd
);
ShowAboutBox
(
hWnd
);
break
;
break
;
...
@@ -914,8 +920,11 @@ LRESULT CALLBACK FrameWndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lPa
...
@@ -914,8 +920,11 @@ LRESULT CALLBACK FrameWndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lPa
OnMenuSelect
(
hWnd
,
LOWORD
(
wParam
),
HIWORD
(
wParam
),
(
HMENU
)
lParam
);
OnMenuSelect
(
hWnd
,
LOWORD
(
wParam
),
HIWORD
(
wParam
),
(
HMENU
)
lParam
);
break
;
break
;
case
WM_DESTROY
:
case
WM_DESTROY
:
WinHelp
(
hWnd
,
_T
(
"regedit"
),
HELP_QUIT
,
0
);
{
const
WCHAR
help_regedit
[]
=
{
'r'
,
'e'
,
'g'
,
'e'
,
'd'
,
'i'
,
't'
,
0
};
WinHelpW
(
hWnd
,
help_regedit
,
HELP_QUIT
,
0
);
PostQuitMessage
(
0
);
PostQuitMessage
(
0
);
}
default:
default:
return
DefWindowProc
(
hWnd
,
message
,
wParam
,
lParam
);
return
DefWindowProc
(
hWnd
,
message
,
wParam
,
lParam
);
}
}
...
...
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