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
bbd00da4
Commit
bbd00da4
authored
Apr 29, 2009
by
Nikolay Sivov
Committed by
Alexandre Julliard
Apr 29, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
comctl32/listview: Handle CCM_[G,S]ETVERSION in listview.
parent
fce0f9ab
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
50 additions
and
0 deletions
+50
-0
listview.c
dlls/comctl32/listview.c
+50
-0
No files found.
dlls/comctl32/listview.c
View file @
bbd00da4
...
...
@@ -309,6 +309,8 @@ typedef struct tagLISTVIEW_INFO
INT
nMeasureItemHeight
;
INT
xTrackLine
;
/* The x coefficient of the track line or -1 if none */
DELAYED_ITEM_EDIT
itemEdit
;
/* Pointer to this structure will be the timer ID */
DWORD
iVersion
;
/* CCM_[G,S]ETVERSION */
}
LISTVIEW_INFO
;
/*
...
...
@@ -8133,6 +8135,7 @@ static LRESULT LISTVIEW_NCCreate(HWND hwnd, const CREATESTRUCTW *lpcs)
infoPtr
->
nMeasureItemHeight
=
0
;
infoPtr
->
xTrackLine
=
-
1
;
/* no track line */
infoPtr
->
itemEdit
.
fEnabled
=
FALSE
;
infoPtr
->
iVersion
=
COMCTL32_VERSION
;
/* get default font (icon title) */
SystemParametersInfoW
(
SPI_GETICONTITLELOGFONT
,
0
,
&
logFont
,
0
);
...
...
@@ -9759,6 +9762,47 @@ static LRESULT LISTVIEW_ShowWindow(LISTVIEW_INFO *infoPtr, BOOL bShown, INT iSta
/***
* DESCRIPTION:
* Processes CCM_GETVERSION messages.
*
* PARAMETER(S):
* [I] infoPtr : valid pointer to the listview structure
*
* RETURN:
* Current version
*/
static
inline
LRESULT
LISTVIEW_GetVersion
(
LISTVIEW_INFO
*
infoPtr
)
{
return
infoPtr
->
iVersion
;
}
/***
* DESCRIPTION:
* Processes CCM_SETVERSION messages.
*
* PARAMETER(S):
* [I] infoPtr : valid pointer to the listview structure
* [I] iVersion : version to be set
*
* RETURN:
* -1 when requested version is greater then DLL version;
* previous version otherwise
*/
static
LRESULT
LISTVIEW_SetVersion
(
LISTVIEW_INFO
*
infoPtr
,
DWORD
iVersion
)
{
INT
iOldVersion
=
infoPtr
->
iVersion
;
if
(
iVersion
>
COMCTL32_VERSION
)
return
-
1
;
infoPtr
->
iVersion
=
iVersion
;
TRACE
(
"new version %d
\n
"
,
iVersion
);
return
iOldVersion
;
}
/***
* DESCRIPTION:
* Window procedure of the listview control.
*
*/
...
...
@@ -10126,6 +10170,12 @@ LISTVIEW_WindowProc(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
case
LVM_UPDATE
:
return
LISTVIEW_Update
(
infoPtr
,
(
INT
)
wParam
);
case
CCM_GETVERSION
:
return
LISTVIEW_GetVersion
(
infoPtr
);
case
CCM_SETVERSION
:
return
LISTVIEW_SetVersion
(
infoPtr
,
wParam
);
case
WM_CHAR
:
return
LISTVIEW_ProcessLetterKeys
(
infoPtr
,
wParam
,
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