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
b4e7e257
Commit
b4e7e257
authored
May 11, 2009
by
Nikolay Sivov
Committed by
Alexandre Julliard
May 12, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
comctl32/header: Make Header_* macros match PSDK.
parent
03c6a0d9
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
16 deletions
+17
-16
listview.c
dlls/comctl32/listview.c
+4
-3
commctrl.h
include/commctrl.h
+13
-13
No files found.
dlls/comctl32/listview.c
View file @
b4e7e257
...
...
@@ -4698,7 +4698,7 @@ static BOOL LISTVIEW_DeleteColumn(LISTVIEW_INFO *infoPtr, INT nColumn)
LISTVIEW_GetHeaderRect
(
infoPtr
,
nColumn
,
&
rcCol
);
if
(
!
Header_DeleteItem
(
infoPtr
->
hwndHeader
,
nColumn
))
if
(
!
SendMessageW
(
infoPtr
->
hwndHeader
,
HDM_DELETEITEM
,
nColumn
,
0
))
return
FALSE
;
Free
(
DPA_GetPtr
(
infoPtr
->
hdpaColumns
,
nColumn
));
...
...
@@ -6019,7 +6019,7 @@ static BOOL LISTVIEW_GetSubItemRect(const LISTVIEW_INFO *infoPtr, INT nItem, LPR
}
if
(
infoPtr
->
hwndHeader
)
return
Header_GetItemRect
(
infoPtr
->
hwndHeader
,
lprc
->
top
,
lprc
);
return
SendMessageW
(
infoPtr
->
hwndHeader
,
HDM_GETITEMRECT
,
lprc
->
top
,
(
LPARAM
)
lprc
);
else
{
memset
(
lprc
,
0
,
sizeof
(
RECT
));
...
...
@@ -6983,7 +6983,8 @@ static INT LISTVIEW_InsertColumnT(LISTVIEW_INFO *infoPtr, INT nColumn,
if
(
DPA_InsertPtr
(
infoPtr
->
hdpaColumns
,
nNewColumn
,
lpColumnInfo
)
==
-
1
)
goto
fail
;
if
(
lpColumn
->
mask
&
LVCF_FMT
)
lpColumnInfo
->
fmt
=
lpColumn
->
fmt
;
if
(
!
Header_GetItemRect
(
infoPtr
->
hwndHeader
,
nNewColumn
,
&
lpColumnInfo
->
rcHeader
))
goto
fail
;
if
(
!
SendMessageW
(
infoPtr
->
hwndHeader
,
HDM_GETITEMRECT
,
nNewColumn
,
(
LPARAM
)
&
lpColumnInfo
->
rcHeader
))
goto
fail
;
/* now we have to actually adjust the data */
if
(
!
(
infoPtr
->
dwStyle
&
LVS_OWNERDATA
)
&&
infoPtr
->
nItemCount
>
0
)
...
...
include/commctrl.h
View file @
b4e7e257
...
...
@@ -974,14 +974,14 @@ typedef struct tagNMHDFILTERBTNCLICK
}
NMHDFILTERBTNCLICK
,
*
LPNMHDFILTERBTNCLICK
;
#define Header_GetItemCount(hwndHD) \
(INT)SNDMSG
A
((hwndHD),HDM_GETITEMCOUNT,0,0L)
(INT)SNDMSG((hwndHD),HDM_GETITEMCOUNT,0,0L)
#define Header_InsertItemA(hwndHD,i,phdi) \
(INT)SNDMSGA((hwndHD),HDM_INSERTITEMA,(WPARAM)(INT)(i),(LPARAM)(const HDITEMA*)(phdi))
#define Header_InsertItemW(hwndHD,i,phdi) \
(INT)SNDMSGW((hwndHD),HDM_INSERTITEMW,(WPARAM)(INT)(i),(LPARAM)(const HDITEMW*)(phdi))
#define Header_InsertItem WINELIB_NAME_AW(Header_InsertItem)
#define Header_DeleteItem(hwndHD,i) \
(BOOL)SNDMSG
A
((hwndHD),HDM_DELETEITEM,(WPARAM)(INT)(i),0L)
(BOOL)SNDMSG((hwndHD),HDM_DELETEITEM,(WPARAM)(INT)(i),0L)
#define Header_GetItemA(hwndHD,i,phdi) \
(BOOL)SNDMSGA((hwndHD),HDM_GETITEMA,(WPARAM)(INT)(i),(LPARAM)(HDITEMA*)(phdi))
#define Header_GetItemW(hwndHD,i,phdi) \
...
...
@@ -993,27 +993,27 @@ typedef struct tagNMHDFILTERBTNCLICK
(BOOL)SNDMSGW((hwndHD),HDM_SETITEMW,(WPARAM)(INT)(i),(LPARAM)(const HDITEMW*)(phdi))
#define Header_SetItem WINELIB_NAME_AW(Header_SetItem)
#define Header_Layout(hwndHD,playout) \
(BOOL)SNDMSG
A
((hwndHD),HDM_LAYOUT,0,(LPARAM)(LPHDLAYOUT)(playout))
(BOOL)SNDMSG((hwndHD),HDM_LAYOUT,0,(LPARAM)(LPHDLAYOUT)(playout))
#define Header_GetItemRect(hwnd,iItem,lprc) \
(BOOL)SNDMSG
A
((hwnd),HDM_GETITEMRECT,(WPARAM)iItem,(LPARAM)lprc)
(BOOL)SNDMSG((hwnd),HDM_GETITEMRECT,(WPARAM)iItem,(LPARAM)lprc)
#define Header_SetImageList(hwnd,himl) \
(HIMAGELIST)SNDMSG
A
((hwnd),HDM_SETIMAGELIST,0,(LPARAM)himl)
(HIMAGELIST)SNDMSG((hwnd),HDM_SETIMAGELIST,0,(LPARAM)himl)
#define Header_GetImageList(hwnd) \
(HIMAGELIST)SNDMSG
A
((hwnd),HDM_GETIMAGELIST,0,0)
(HIMAGELIST)SNDMSG((hwnd),HDM_GETIMAGELIST,0,0)
#define Header_OrderToIndex(hwnd,i) \
(INT)SNDMSG
A
((hwnd),HDM_ORDERTOINDEX,(WPARAM)i,0)
(INT)SNDMSG((hwnd),HDM_ORDERTOINDEX,(WPARAM)i,0)
#define Header_CreateDragImage(hwnd,i) \
(HIMAGELIST)SNDMSG
A
((hwnd),HDM_CREATEDRAGIMAGE,(WPARAM)i,0)
(HIMAGELIST)SNDMSG((hwnd),HDM_CREATEDRAGIMAGE,(WPARAM)i,0)
#define Header_GetOrderArray(hwnd,iCount,lpi) \
(BOOL)SNDMSG
A
((hwnd),HDM_GETORDERARRAY,(WPARAM)iCount,(LPARAM)lpi)
(BOOL)SNDMSG((hwnd),HDM_GETORDERARRAY,(WPARAM)iCount,(LPARAM)lpi)
#define Header_SetOrderArray(hwnd,iCount,lpi) \
(BOOL)SNDMSG
A
((hwnd),HDM_SETORDERARRAY,(WPARAM)iCount,(LPARAM)lpi)
(BOOL)SNDMSG((hwnd),HDM_SETORDERARRAY,(WPARAM)iCount,(LPARAM)lpi)
#define Header_SetHotDivider(hwnd,fPos,dw) \
(INT)SNDMSG
A
((hwnd),HDM_SETHOTDIVIDER,(WPARAM)fPos,(LPARAM)dw)
(INT)SNDMSG((hwnd),HDM_SETHOTDIVIDER,(WPARAM)fPos,(LPARAM)dw)
#define Header_SetUnicodeFormat(hwnd,fUnicode) \
(BOOL)SNDMSG
A
((hwnd),HDM_SETUNICODEFORMAT,(WPARAM)(fUnicode),0)
(BOOL)SNDMSG((hwnd),HDM_SETUNICODEFORMAT,(WPARAM)(fUnicode),0)
#define Header_GetUnicodeFormat(hwnd) \
(BOOL)SNDMSG
A
((hwnd),HDM_GETUNICODEFORMAT,0,0)
(BOOL)SNDMSG((hwnd),HDM_GETUNICODEFORMAT,0,0)
/* Win32 5.1 Button Theme */
#define WC_BUTTONA "Button"
...
...
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