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
d67986b9
Commit
d67986b9
authored
Sep 02, 2008
by
Alexander Nicolaysen Sørnes
Committed by
Alexandre Julliard
Sep 03, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
regedit: Some minor unicode conversions.
parent
7bb5df75
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
18 additions
and
16 deletions
+18
-16
childwnd.c
programs/regedit/childwnd.c
+1
-1
edit.c
programs/regedit/edit.c
+10
-8
framewnd.c
programs/regedit/framewnd.c
+5
-5
listview.c
programs/regedit/listview.c
+2
-2
No files found.
programs/regedit/childwnd.c
View file @
d67986b9
...
...
@@ -379,7 +379,7 @@ LRESULT CALLBACK ChildWndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lPa
if
(((
int
)
wParam
==
LIST_WINDOW
)
&&
(
g_pChildWnd
!=
NULL
))
{
if
(((
LPNMHDR
)
lParam
)
->
code
==
NM_SETFOCUS
)
{
g_pChildWnd
->
nFocusPanel
=
1
;
}
else
if
(
!
SendMessage
(
g_pChildWnd
->
hListWnd
,
WM_NOTIFY_REFLECT
,
wParam
,
lParam
))
{
}
else
if
(
!
SendMessage
W
(
g_pChildWnd
->
hListWnd
,
WM_NOTIFY_REFLECT
,
wParam
,
lParam
))
{
goto
def
;
}
}
...
...
programs/regedit/edit.c
View file @
d67986b9
...
...
@@ -87,17 +87,19 @@ void error(HWND hwnd, INT resId, ...)
static
void
error_code_messagebox
(
HWND
hwnd
,
DWORD
error_code
)
{
LP
T
STR
lpMsgBuf
;
LP
W
STR
lpMsgBuf
;
DWORD
status
;
TCHAR
title
[
256
];
static
TCHAR
fallback
[]
=
TEXT
(
"Error displaying error message.
\n
"
);
if
(
!
LoadString
(
hInst
,
IDS_ERROR
,
title
,
COUNT_OF
(
title
)))
lstrcpy
(
title
,
TEXT
(
"Error"
));
status
=
FormatMessage
(
FORMAT_MESSAGE_ALLOCATE_BUFFER
|
FORMAT_MESSAGE_FROM_SYSTEM
,
NULL
,
error_code
,
0
,
(
LPTSTR
)
&
lpMsgBuf
,
0
,
NULL
);
WCHAR
title
[
256
];
static
WCHAR
fallback
[]
=
{
'E'
,
'r'
,
'r'
,
'o'
,
'r'
,
' '
,
'd'
,
'i'
,
's'
,
'p'
,
'l'
,
'a'
,
'y'
,
'i'
,
'n'
,
'g'
,
' '
,
'e'
,
'r'
,
'r'
,
'o'
,
'r'
,
' '
,
'm'
,
'e'
,
's'
,
's'
,
'a'
,
'g'
,
'e'
,
'.'
,
'\n'
,
0
};
static
const
WCHAR
title_error
[]
=
{
'E'
,
'r'
,
'r'
,
'o'
,
'r'
,
0
};
if
(
!
LoadStringW
(
hInst
,
IDS_ERROR
,
title
,
COUNT_OF
(
title
)))
lstrcpyW
(
title
,
title_error
);
status
=
FormatMessageW
(
FORMAT_MESSAGE_ALLOCATE_BUFFER
|
FORMAT_MESSAGE_FROM_SYSTEM
,
NULL
,
error_code
,
0
,
(
LPWSTR
)
&
lpMsgBuf
,
0
,
NULL
);
if
(
!
status
)
lpMsgBuf
=
fallback
;
MessageBox
(
hwnd
,
lpMsgBuf
,
title
,
MB_OK
|
MB_ICONERROR
);
MessageBox
W
(
hwnd
,
lpMsgBuf
,
title
,
MB_OK
|
MB_ICONERROR
);
if
(
lpMsgBuf
!=
fallback
)
LocalFree
(
lpMsgBuf
);
}
...
...
programs/regedit/framewnd.c
View file @
d67986b9
...
...
@@ -56,7 +56,7 @@ static void resize_frame_rect(HWND hWnd, PRECT prect)
RECT
rt
;
/*
if (IsWindowVisible(hToolBar)) {
SendMessage
(hToolBar, WM_SIZE, 0, 0);
SendMessageW
(hToolBar, WM_SIZE, 0, 0);
GetClientRect(hToolBar, &rt);
prect->top = rt.bottom+3;
prect->bottom -= rt.bottom+3;
...
...
@@ -607,8 +607,8 @@ static INT_PTR CALLBACK removefavorite_dlgproc(HWND hwndDlg, UINT uMsg, WPARAM w
}
break
;
case
IDOK
:
{
int
pos
=
SendMessage
(
hwndList
,
LB_GETCURSEL
,
0
,
0
);
int
len
=
SendMessage
(
hwndList
,
LB_GETTEXTLEN
,
pos
,
0
);
int
pos
=
SendMessage
W
(
hwndList
,
LB_GETCURSEL
,
0
,
0
);
int
len
=
SendMessage
W
(
hwndList
,
LB_GETTEXTLEN
,
pos
,
0
);
if
(
len
>
0
)
{
LPWSTR
lpName
=
HeapAlloc
(
GetProcessHeap
(),
0
,
sizeof
(
WCHAR
)
*
(
len
+
1
));
SendMessageW
(
hwndList
,
LB_GETTEXT
,
pos
,
(
LPARAM
)
lpName
);
...
...
@@ -739,7 +739,7 @@ static BOOL _CmdWndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam)
hItem
=
FindNext
(
g_pChildWnd
->
hTreeWnd
,
hItem
,
searchString
,
searchMask
,
&
row
);
SetCursor
(
hcursorOld
);
if
(
hItem
)
{
SendMessage
(
g_pChildWnd
->
hTreeWnd
,
TVM_SELECTITEM
,
TVGN_CARET
,
(
LPARAM
)
hItem
);
SendMessage
W
(
g_pChildWnd
->
hTreeWnd
,
TVM_SELECTITEM
,
TVGN_CARET
,
(
LPARAM
)
hItem
);
InvalidateRect
(
g_pChildWnd
->
hTreeWnd
,
NULL
,
TRUE
);
UpdateWindow
(
g_pChildWnd
->
hTreeWnd
);
if
(
row
!=
-
1
)
{
...
...
@@ -886,7 +886,7 @@ static BOOL _CmdWndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam)
if
(
ClientToScreen
(
g_pChildWnd
->
hWnd
,
&
pts
))
{
SetCursorPos
(
pts
.
x
,
pts
.
y
);
SetCursor
(
LoadCursor
(
0
,
IDC_SIZEWE
));
SendMessage
(
g_pChildWnd
->
hWnd
,
WM_LBUTTONDOWN
,
0
,
MAKELPARAM
(
pt
.
x
,
pt
.
y
));
SendMessage
W
(
g_pChildWnd
->
hWnd
,
WM_LBUTTONDOWN
,
0
,
MAKELPARAM
(
pt
.
x
,
pt
.
y
));
}
return
TRUE
;
}
...
...
programs/regedit/listview.c
View file @
d67986b9
...
...
@@ -411,7 +411,7 @@ static LRESULT CALLBACK ListWndProc(HWND hWnd, UINT message, WPARAM wParam, LPAR
case
NM_RETURN
:
{
int
cnt
=
ListView_GetNextItem
(
hWnd
,
-
1
,
LVNI_FOCUSED
|
LVNI_SELECTED
);
if
(
cnt
!=
-
1
)
SendMessage
(
hFrameWnd
,
WM_COMMAND
,
ID_EDIT_MODIFY
,
0
);
SendMessage
W
(
hFrameWnd
,
WM_COMMAND
,
ID_EDIT_MODIFY
,
0
);
}
break
;
case
NM_DBLCLK
:
{
...
...
@@ -439,7 +439,7 @@ static LRESULT CALLBACK ListWndProc(HWND hWnd, UINT message, WPARAM wParam, LPAR
ListView_SetItemState
(
hWnd
,
-
1
,
0
,
LVIS_FOCUSED
|
LVIS_SELECTED
);
ListView_SetItemState
(
hWnd
,
info
.
iItem
,
LVIS_FOCUSED
|
LVIS_SELECTED
,
LVIS_FOCUSED
|
LVIS_SELECTED
);
SendMessage
(
hFrameWnd
,
WM_COMMAND
,
ID_EDIT_MODIFY
,
0
);
SendMessage
W
(
hFrameWnd
,
WM_COMMAND
,
ID_EDIT_MODIFY
,
0
);
}
}
break
;
...
...
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