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
a46b7fb4
Commit
a46b7fb4
authored
Mar 23, 2005
by
Dimitrie O. Paun
Committed by
Alexandre Julliard
Mar 23, 2005
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Complete unicodification of the treeview common control.
parent
67607f9e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
11 deletions
+13
-11
treeview.c
dlls/comctl32/treeview.c
+13
-11
No files found.
dlls/comctl32/treeview.c
View file @
a46b7fb4
...
...
@@ -19,6 +19,8 @@
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*
* NOTES
*
* Note that TREEVIEW_INFO * and HTREEITEM are the same thing.
*
* Note2: All items always! have valid (allocated) pszText field.
...
...
@@ -2816,7 +2818,7 @@ TREEVIEW_Paint(TREEVIEW_INFO *infoPtr, WPARAM wParam)
BITMAP
bitmap
;
hbitmap
=
GetCurrentObject
(
hdc
,
OBJ_BITMAP
);
if
(
!
hbitmap
)
return
0
;
GetObject
A
(
hbitmap
,
sizeof
(
BITMAP
),
&
bitmap
);
GetObject
W
(
hbitmap
,
sizeof
(
BITMAP
),
&
bitmap
);
rc
.
left
=
0
;
rc
.
top
=
0
;
rc
.
right
=
bitmap
.
bmWidth
;
rc
.
bottom
=
bitmap
.
bmHeight
;
...
...
@@ -3809,7 +3811,7 @@ TREEVIEW_TrackMouse(TREEVIEW_INFO *infoPtr, POINT pt)
while
(
1
)
{
if
(
PeekMessage
A
(
&
msg
,
0
,
0
,
0
,
PM_REMOVE
|
PM_NOYIELD
))
if
(
PeekMessage
W
(
&
msg
,
0
,
0
,
0
,
PM_REMOVE
|
PM_NOYIELD
))
{
if
(
msg
.
message
==
WM_MOUSEMOVE
)
{
...
...
@@ -3831,7 +3833,7 @@ TREEVIEW_TrackMouse(TREEVIEW_INFO *infoPtr, POINT pt)
break
;
}
DispatchMessage
A
(
&
msg
);
DispatchMessage
W
(
&
msg
);
}
if
(
GetCapture
()
!=
infoPtr
->
hwnd
)
...
...
@@ -5185,7 +5187,7 @@ TREEVIEW_Notify(TREEVIEW_INFO *infoPtr, WPARAM wParam, LPARAM lParam)
}
return
0
;
}
return
DefWindowProc
A
(
infoPtr
->
hwnd
,
WM_NOTIFY
,
wParam
,
lParam
);
return
DefWindowProc
W
(
infoPtr
->
hwnd
,
WM_NOTIFY
,
wParam
,
lParam
);
}
static
INT
TREEVIEW_NotifyFormat
(
TREEVIEW_INFO
*
infoPtr
,
HWND
hwndFrom
,
UINT
nCommand
)
...
...
@@ -5572,7 +5574,7 @@ TREEVIEW_WindowProc(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
if
((
uMsg
>=
WM_USER
)
&&
(
uMsg
<
WM_APP
))
TRACE
(
"Unknown msg %04x wp=%08x lp=%08lx
\n
"
,
uMsg
,
wParam
,
lParam
);
def:
return
DefWindowProc
A
(
hwnd
,
uMsg
,
wParam
,
lParam
);
return
DefWindowProc
W
(
hwnd
,
uMsg
,
wParam
,
lParam
);
}
}
...
...
@@ -5582,28 +5584,28 @@ def:
VOID
TREEVIEW_Register
(
void
)
{
WNDCLASS
A
wndClass
;
WNDCLASS
W
wndClass
;
TRACE
(
"
\n
"
);
ZeroMemory
(
&
wndClass
,
sizeof
(
WNDCLASS
A
));
ZeroMemory
(
&
wndClass
,
sizeof
(
WNDCLASS
W
));
wndClass
.
style
=
CS_GLOBALCLASS
|
CS_DBLCLKS
;
wndClass
.
lpfnWndProc
=
TREEVIEW_WindowProc
;
wndClass
.
cbClsExtra
=
0
;
wndClass
.
cbWndExtra
=
sizeof
(
TREEVIEW_INFO
*
);
wndClass
.
hCursor
=
LoadCursor
A
(
0
,
(
LP
STR
)
IDC_ARROW
);
wndClass
.
hCursor
=
LoadCursor
W
(
0
,
(
LPW
STR
)
IDC_ARROW
);
wndClass
.
hbrBackground
=
0
;
wndClass
.
lpszClassName
=
WC_TREEVIEW
A
;
wndClass
.
lpszClassName
=
WC_TREEVIEW
W
;
RegisterClass
A
(
&
wndClass
);
RegisterClass
W
(
&
wndClass
);
}
VOID
TREEVIEW_Unregister
(
void
)
{
UnregisterClass
A
(
WC_TREEVIEWA
,
NULL
);
UnregisterClass
W
(
WC_TREEVIEWW
,
NULL
);
}
...
...
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