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
d5f9f27c
Commit
d5f9f27c
authored
Jun 03, 2009
by
Nikolay Sivov
Committed by
Alexandre Julliard
Jun 03, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
comctl32/listview: Implement LVM_GETVIEW.
parent
b13cd52b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
28 additions
and
2 deletions
+28
-2
listview.c
dlls/comctl32/listview.c
+28
-2
No files found.
dlls/comctl32/listview.c
View file @
d5f9f27c
...
...
@@ -122,7 +122,7 @@
* -- LVM_GETTILEINFO, LVM_SETTILEINFO
* -- LVM_GETTILEVIEWINFO, LVM_SETTILEVIEWINFO
* -- LVM_GETUNICODEFORMAT, LVM_SETUNICODEFORMAT
* -- LVM_
GETVIEW, LVM_
SETVIEW
* -- LVM_SETVIEW
* -- LVM_GETWORKAREAS, LVM_SETWORKAREAS
* -- LVM_HASGROUP, LVM_INSERTGROUP, LVM_REMOVEGROUP, LVM_REMOVEALLGROUPS
* -- LVM_INSERTGROUPSORTED
...
...
@@ -280,6 +280,7 @@ typedef struct tagLISTVIEW_INFO
RECT
rcFocus
;
DWORD
dwStyle
;
/* the cached window GWL_STYLE */
DWORD
dwLvExStyle
;
/* extended listview style */
DWORD
uView
;
/* current view available through LVM_[G,S]ETVIEW */
INT
nItemCount
;
/* the number of items in the list */
HDPA
hdpaItems
;
/* array ITEM_INFO pointers */
HDPA
hdpaPosX
;
/* maintains the (X, Y) coordinates of the */
...
...
@@ -1351,6 +1352,26 @@ static void toggle_checkbox_state(LISTVIEW_INFO *infoPtr, INT nItem)
}
}
/* this should be called after window style got updated,
it used to reset view state to match current window style */
static
inline
void
map_style_view
(
LISTVIEW_INFO
*
infoPtr
)
{
switch
(
infoPtr
->
dwStyle
&
LVS_TYPEMASK
)
{
case
LVS_ICON
:
infoPtr
->
uView
=
LV_VIEW_ICON
;
break
;
case
LVS_REPORT
:
infoPtr
->
uView
=
LV_VIEW_DETAILS
;
break
;
case
LVS_SMALLICON
:
infoPtr
->
uView
=
LV_VIEW_SMALLICON
;
break
;
case
LVS_LIST
:
infoPtr
->
uView
=
LV_VIEW_LIST
;
}
}
/******** Internal API functions ************************************/
static
inline
COLUMN_INFO
*
LISTVIEW_GetColumnInfo
(
const
LISTVIEW_INFO
*
infoPtr
,
INT
nSubItem
)
...
...
@@ -8293,6 +8314,8 @@ static LRESULT LISTVIEW_Create(HWND hwnd, const CREATESTRUCTW *lpcs)
LISTVIEW_UpdateScroll
(
infoPtr
);
}
map_style_view
(
infoPtr
);
OpenThemeData
(
hwnd
,
themeClass
);
/* initialize the icon sizes */
...
...
@@ -9723,6 +9746,8 @@ static INT LISTVIEW_StyleChanged(LISTVIEW_INFO *infoPtr, WPARAM wStyleType,
((
lpss
->
styleNew
&
WS_VSCROLL
)
==
0
))
ShowScrollBar
(
infoPtr
->
hwndSelf
,
SB_VERT
,
FALSE
);
map_style_view
(
infoPtr
);
if
(
uNewView
!=
uOldView
)
{
SIZE
oldIconSize
=
infoPtr
->
iconSize
;
...
...
@@ -10094,7 +10119,8 @@ LISTVIEW_WindowProc(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
case
LVM_GETUNICODEFORMAT
:
return
(
infoPtr
->
notifyFormat
==
NFR_UNICODE
);
/* case LVM_GETVIEW: */
case
LVM_GETVIEW
:
return
infoPtr
->
uView
;
case
LVM_GETVIEWRECT
:
return
LISTVIEW_GetViewRect
(
infoPtr
,
(
LPRECT
)
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