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
82796c56
Commit
82796c56
authored
Apr 16, 2011
by
Andrew Nguyen
Committed by
Alexandre Julliard
Apr 18, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
regedit: Remove all Unicode macros in main.h.
parent
182763f6
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
22 additions
and
20 deletions
+22
-20
childwnd.c
programs/regedit/childwnd.c
+1
-1
hexedit.c
programs/regedit/hexedit.c
+18
-16
main.h
programs/regedit/main.h
+2
-2
treeview.c
programs/regedit/treeview.c
+1
-1
No files found.
programs/regedit/childwnd.c
View file @
82796c56
...
...
@@ -388,7 +388,7 @@ LRESULT CALLBACK ChildWndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lPa
if
(((
int
)
wParam
==
TREE_WINDOW
)
&&
(
g_pChildWnd
!=
NULL
))
{
switch
(((
LPNMHDR
)
lParam
)
->
code
)
{
case
TVN_ITEMEXPANDINGW
:
return
!
OnTreeExpanding
(
g_pChildWnd
->
hTreeWnd
,
(
NMTREEVIEW
*
)
lParam
);
return
!
OnTreeExpanding
(
g_pChildWnd
->
hTreeWnd
,
(
NMTREEVIEW
W
*
)
lParam
);
case
TVN_SELCHANGEDW
:
OnTreeSelectionChanged
(
g_pChildWnd
->
hTreeWnd
,
g_pChildWnd
->
hListWnd
,
((
NMTREEVIEWW
*
)
lParam
)
->
itemNew
.
hItem
,
TRUE
);
...
...
programs/regedit/hexedit.c
View file @
82796c56
...
...
@@ -54,6 +54,8 @@ typedef struct tagHEXEDIT_INFO
INT
nScrollPos
;
/* first visible line */
}
HEXEDIT_INFO
;
const
WCHAR
szHexEditClass
[]
=
{
'H'
,
'e'
,
'x'
,
'E'
,
'd'
,
'i'
,
't'
,
0
};
static
inline
LRESULT
HexEdit_SetFont
(
HEXEDIT_INFO
*
infoPtr
,
HFONT
hFont
,
BOOL
redraw
);
static
inline
BYTE
hexchar_to_byte
(
TCHAR
ch
)
...
...
@@ -331,7 +333,7 @@ HexEdit_Char (HEXEDIT_INFO *infoPtr, TCHAR ch)
}
static
inline
LRESULT
HexEdit_Create
(
HEXEDIT_INFO
*
infoPtr
,
LPCREATESTRUCT
lpcs
)
HexEdit_Create
(
HEXEDIT_INFO
*
infoPtr
,
LPCREATESTRUCT
W
lpcs
)
{
HexEdit_SetFont
(
infoPtr
,
GetStockObject
(
SYSTEM_FONT
),
FALSE
);
HexEdit_UpdateScrollbars
(
infoPtr
);
...
...
@@ -467,15 +469,15 @@ HexEdit_LButtonDown (HEXEDIT_INFO *infoPtr)
}
static
inline
LRESULT
HexEdit_NCCreate
(
HWND
hwnd
,
LPCREATESTRUCT
lpcs
)
static
inline
LRESULT
HexEdit_NCCreate
(
HWND
hwnd
,
LPCREATESTRUCT
W
lpcs
)
{
HEXEDIT_INFO
*
infoPtr
;
SetWindowLong
(
hwnd
,
GWL_EXSTYLE
,
lpcs
->
dwExStyle
|
WS_EX_CLIENTEDGE
);
SetWindowLong
W
(
hwnd
,
GWL_EXSTYLE
,
lpcs
->
dwExStyle
|
WS_EX_CLIENTEDGE
);
/* allocate memory for info structure */
infoPtr
=
HeapAlloc
(
GetProcessHeap
(),
HEAP_ZERO_MEMORY
,
sizeof
(
HEXEDIT_INFO
));
SetWindowLongPtr
(
hwnd
,
0
,
(
DWORD_PTR
)
infoPtr
);
SetWindowLongPtr
W
(
hwnd
,
0
,
(
DWORD_PTR
)
infoPtr
);
/* initialize info structure */
infoPtr
->
nCaretPos
=
0
;
...
...
@@ -484,7 +486,7 @@ static inline LRESULT HexEdit_NCCreate (HWND hwnd, LPCREATESTRUCT lpcs)
infoPtr
->
bFocusHex
=
TRUE
;
infoPtr
->
bInsert
=
TRUE
;
return
DefWindowProc
(
infoPtr
->
hwndSelf
,
WM_NCCREATE
,
0
,
(
LPARAM
)
lpcs
);
return
DefWindowProc
W
(
infoPtr
->
hwndSelf
,
WM_NCCREATE
,
0
,
(
LPARAM
)
lpcs
);
}
static
inline
LRESULT
...
...
@@ -611,10 +613,10 @@ HexEdit_VScroll (HEXEDIT_INFO *infoPtr, INT action)
static
LRESULT
WINAPI
HexEdit_WindowProc
(
HWND
hwnd
,
UINT
uMsg
,
WPARAM
wParam
,
LPARAM
lParam
)
{
HEXEDIT_INFO
*
infoPtr
=
(
HEXEDIT_INFO
*
)
GetWindowLongPtr
(
hwnd
,
0
);
HEXEDIT_INFO
*
infoPtr
=
(
HEXEDIT_INFO
*
)
GetWindowLongPtr
W
(
hwnd
,
0
);
if
(
!
infoPtr
&&
(
uMsg
!=
WM_NCCREATE
))
return
DefWindowProc
(
hwnd
,
uMsg
,
wParam
,
lParam
);
return
DefWindowProc
W
(
hwnd
,
uMsg
,
wParam
,
lParam
);
switch
(
uMsg
)
{
...
...
@@ -625,10 +627,10 @@ HexEdit_WindowProc (HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
return
HexEdit_GetData
(
infoPtr
,
(
INT
)
wParam
,
(
BYTE
*
)
lParam
);
case
WM_CHAR
:
return
HexEdit_Char
(
infoPtr
,
(
T
CHAR
)
wParam
);
return
HexEdit_Char
(
infoPtr
,
(
W
CHAR
)
wParam
);
case
WM_CREATE
:
return
HexEdit_Create
(
infoPtr
,
(
LPCREATESTRUCT
)
lParam
);
return
HexEdit_Create
(
infoPtr
,
(
LPCREATESTRUCT
W
)
lParam
);
case
WM_DESTROY
:
return
HexEdit_Destroy
(
infoPtr
);
...
...
@@ -652,7 +654,7 @@ HexEdit_WindowProc (HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
return
HexEdit_LButtonDown
(
infoPtr
);
case
WM_NCCREATE
:
return
HexEdit_NCCreate
(
hwnd
,
(
LPCREATESTRUCT
)
lParam
);
return
HexEdit_NCCreate
(
hwnd
,
(
LPCREATESTRUCT
W
)
lParam
);
case
WM_PAINT
:
HexEdit_Paint
(
infoPtr
);
...
...
@@ -668,23 +670,23 @@ HexEdit_WindowProc (HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
return
HexEdit_VScroll
(
infoPtr
,
(
INT
)
wParam
);
default:
return
DefWindowProc
(
hwnd
,
uMsg
,
wParam
,
lParam
);
return
DefWindowProc
W
(
hwnd
,
uMsg
,
wParam
,
lParam
);
}
return
0
;
}
void
HexEdit_Register
(
void
)
{
WNDCLASS
wndClass
;
WNDCLASS
W
wndClass
;
ZeroMemory
(
&
wndClass
,
sizeof
(
WNDCLASS
));
ZeroMemory
(
&
wndClass
,
sizeof
(
WNDCLASS
W
));
wndClass
.
style
=
0
;
wndClass
.
lpfnWndProc
=
HexEdit_WindowProc
;
wndClass
.
cbClsExtra
=
0
;
wndClass
.
cbWndExtra
=
sizeof
(
HEXEDIT_INFO
*
);
wndClass
.
hCursor
=
NULL
;
wndClass
.
hbrBackground
=
NULL
;
wndClass
.
lpszClassName
=
HEXEDIT_CLASS
;
wndClass
.
lpszClassName
=
szHexEditClass
;
RegisterClass
(
&
wndClass
);
RegisterClass
W
(
&
wndClass
);
}
programs/regedit/main.h
View file @
82796c56
...
...
@@ -40,7 +40,6 @@
#define WM_NOTIFY_REFLECT (WM_USER+1024)
/* HexEdit Class */
#define HEXEDIT_CLASS TEXT("HexEdit")
#define HEM_SETDATA (WM_USER+0)
#define HEM_GETDATA (WM_USER+1)
...
...
@@ -90,6 +89,7 @@ extern enum OPTION_FLAGS Options;
extern
WCHAR
szTitle
[];
extern
const
WCHAR
szFrameClass
[];
extern
const
WCHAR
szChildClass
[];
extern
const
WCHAR
szHexEditClass
[];
extern
WCHAR
g_pszDefaultValueName
[];
/* Registry class names and their indexes */
...
...
@@ -127,7 +127,7 @@ extern BOOL IsDefaultValue(HWND hwndLV, int i);
/* treeview.c */
extern
HWND
CreateTreeView
(
HWND
hwndParent
,
LPWSTR
pHostName
,
UINT
id
);
extern
BOOL
RefreshTreeView
(
HWND
hWndTV
);
extern
BOOL
OnTreeExpanding
(
HWND
hWnd
,
NMTREEVIEW
*
pnmtv
);
extern
BOOL
OnTreeExpanding
(
HWND
hWnd
,
NMTREEVIEW
W
*
pnmtv
);
extern
LPWSTR
GetItemPath
(
HWND
hwndTV
,
HTREEITEM
hItem
,
HKEY
*
phRootKey
);
extern
BOOL
DeleteNode
(
HWND
hwndTV
,
HTREEITEM
hItem
);
extern
HTREEITEM
InsertNode
(
HWND
hwndTV
,
HTREEITEM
hItem
,
LPWSTR
name
);
...
...
programs/regedit/treeview.c
View file @
82796c56
...
...
@@ -650,7 +650,7 @@ done:
return
TRUE
;
}
BOOL
OnTreeExpanding
(
HWND
hwndTV
,
NMTREEVIEW
*
pnmtv
)
BOOL
OnTreeExpanding
(
HWND
hwndTV
,
NMTREEVIEW
W
*
pnmtv
)
{
return
UpdateExpandingTree
(
hwndTV
,
pnmtv
->
itemNew
.
hItem
,
pnmtv
->
itemNew
.
state
);
}
...
...
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