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
f9b58070
Commit
f9b58070
authored
Jul 31, 1999
by
Eric Kohl
Committed by
Alexandre Julliard
Jul 31, 1999
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Some more messages.
parent
e2ab4d03
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
245 additions
and
34 deletions
+245
-34
listview.c
dlls/comctl32/listview.c
+210
-22
treeview.c
dlls/comctl32/treeview.c
+33
-12
listview.h
include/listview.h
+1
-0
treeview.h
include/treeview.h
+1
-0
No files found.
dlls/comctl32/listview.c
View file @
f9b58070
This diff is collapsed.
Click to expand it.
dlls/comctl32/treeview.c
View file @
f9b58070
...
...
@@ -1461,7 +1461,8 @@ LRESULT WINAPI TREEVIEW_Sort (
/* undocumented feature: TVI_ROOT means `sort the whole tree' */
if
(
parent
==
TVI_ROOT
)
parent
=
infoPtr
->
TopRootItem
;
if
(
parent
==
TVI_ROOT
)
parent
=
infoPtr
->
TopRootItem
;
/* Check for a valid handle to the parent item */
if
(
!
TREEVIEW_ValidItem
(
infoPtr
,
parent
))
...
...
@@ -1870,6 +1871,8 @@ TREEVIEW_InsertItemA (HWND hwnd, WPARAM wParam, LPARAM lParam)
return
(
LRESULT
)
iItem
;
}
static
LRESULT
TREEVIEW_InsertItemW
(
HWND
hwnd
,
WPARAM
wParam
,
LPARAM
lParam
)
{
...
...
@@ -1921,8 +1924,6 @@ TREEVIEW_InsertItemW(HWND hwnd, WPARAM wParam, LPARAM lParam)
}
static
LRESULT
TREEVIEW_DeleteItem
(
HWND
hwnd
,
WPARAM
wParam
,
LPARAM
lParam
)
{
...
...
@@ -2176,6 +2177,7 @@ TREEVIEW_Create (HWND hwnd, WPARAM wParam, LPARAM lParam)
infoPtr
->
clrText
=-
1
;
/* use system color */
infoPtr
->
dropItem
=
0
;
infoPtr
->
pCallBackSort
=
NULL
;
infoPtr
->
uScrollTime
=
300
;
/* milliseconds */
/*
infoPtr->hwndNotify = GetParent32 (hwnd);
...
...
@@ -3498,6 +3500,27 @@ TREEVIEW_KeyDown (HWND hwnd, WPARAM wParam, LPARAM lParam)
}
static
LRESULT
TREEVIEW_GetScrollTime
(
HWND
hwnd
)
{
TREEVIEW_INFO
*
infoPtr
=
TREEVIEW_GetInfoPtr
(
hwnd
);
return
infoPtr
->
uScrollTime
;
}
static
LRESULT
TREEVIEW_SetScrollTime
(
HWND
hwnd
,
UINT
uScrollTime
)
{
TREEVIEW_INFO
*
infoPtr
=
TREEVIEW_GetInfoPtr
(
hwnd
);
UINT
uOldScrollTime
=
infoPtr
->
uScrollTime
;
infoPtr
->
uScrollTime
=
min
(
uScrollTime
,
100
);
return
uOldScrollTime
;
}
LRESULT
WINAPI
TREEVIEW_WindowProc
(
HWND
hwnd
,
UINT
uMsg
,
WPARAM
wParam
,
LPARAM
lParam
)
{
...
...
@@ -3542,7 +3565,7 @@ TREEVIEW_WindowProc (HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
return
TREEVIEW_GetItemA
(
hwnd
,
wParam
,
lParam
);
case
TVM_GETITEMW
:
FIXME
(
"Unimplemented msg TVM_GETITEM
32
W
\n
"
);
FIXME
(
"Unimplemented msg TVM_GETITEMW
\n
"
);
return
0
;
case
TVM_SETITEMA
:
...
...
@@ -3553,11 +3576,11 @@ TREEVIEW_WindowProc (HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
return
0
;
case
TVM_EDITLABELA
:
FIXME
(
"Unimplemented msg TVM_EDITLABEL
32
A
\n
"
);
FIXME
(
"Unimplemented msg TVM_EDITLABELA
\n
"
);
return
0
;
case
TVM_EDITLABELW
:
FIXME
(
"Unimplemented msg TVM_EDITLABEL
32
W
\n
"
);
FIXME
(
"Unimplemented msg TVM_EDITLABELW
\n
"
);
return
0
;
case
TVM_GETEDITCONTROL
:
...
...
@@ -3586,11 +3609,11 @@ TREEVIEW_WindowProc (HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
return
TREEVIEW_EndEditLabelNow
(
hwnd
,
wParam
,
lParam
);
case
TVM_GETISEARCHSTRINGA
:
FIXME
(
"Unimplemented msg TVM_GETISEARCHSTRING
32
A
\n
"
);
FIXME
(
"Unimplemented msg TVM_GETISEARCHSTRINGA
\n
"
);
return
0
;
case
TVM_GETISEARCHSTRINGW
:
FIXME
(
"Unimplemented msg TVM_GETISEARCHSTRING
32
W
\n
"
);
FIXME
(
"Unimplemented msg TVM_GETISEARCHSTRINGW
\n
"
);
return
0
;
case
TVM_GETTOOLTIPS
:
...
...
@@ -3622,12 +3645,10 @@ TREEVIEW_WindowProc (HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
return
TREEVIEW_GetTextColor
(
hwnd
);
case
TVM_SETSCROLLTIME
:
FIXME
(
"Unimplemented msg TVM_SETSCROLLTIME
\n
"
);
return
0
;
return
TREEVIEW_SetScrollTime
(
hwnd
,
(
UINT
)
wParam
);
case
TVM_GETSCROLLTIME
:
FIXME
(
"Unimplemented msg TVM_GETSCROLLTIME
\n
"
);
return
0
;
return
TREEVIEW_GetScrollTime
(
hwnd
);
case
TVM_GETITEMSTATE
:
return
TREEVIEW_GetItemState
(
hwnd
,
wParam
,
lParam
);
...
...
include/listview.h
View file @
f9b58070
...
...
@@ -45,6 +45,7 @@ typedef struct tagLISTVIEW_INFO
INT
nItemHeight
;
INT
nItemWidth
;
INT
nSelectionMark
;
INT
nHotItem
;
SHORT
notifyFormat
;
RECT
rcList
;
RECT
rcView
;
...
...
include/treeview.h
View file @
f9b58070
...
...
@@ -53,6 +53,7 @@ typedef struct tagTREEVIEW_INFO
HTREEITEM
uMaxHandle
;
/* needed for delete_item */
HTREEITEM
TopRootItem
;
/* handle to first item in treeview */
INT
cdmode
;
/* last custom draw setting */
UINT
uScrollTime
;
/* max. time for scrolling in milliseconds*/
UINT
uItemHeight
;
/* item height, -1 for default item height */
UINT
uRealItemHeight
;
/* current item height in pixels */
UINT
uVisibleHeight
;
/* visible height of treeview in pixels */
...
...
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