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
2dfe50aa
Commit
2dfe50aa
authored
Mar 03, 2006
by
Mike McCormack
Committed by
Alexandre Julliard
Mar 03, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
comctl32: Fix some gcc 4.1 warnings caused by windowsx.h macros.
parent
8949d29d
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
12 deletions
+11
-12
listview.c
dlls/comctl32/listview.c
+6
-6
pager.c
dlls/comctl32/pager.c
+5
-6
No files found.
dlls/comctl32/listview.c
View file @
2dfe50aa
...
...
@@ -5819,7 +5819,7 @@ static INT LISTVIEW_GetNextItem(LISTVIEW_INFO *infoPtr, INT nItem, UINT uFlags)
}
lvFindInfo
.
flags
=
LVFI_NEARESTXY
;
lvFindInfo
.
vkDirection
=
VK_UP
;
ListView_GetItemPosition
(
infoPtr
->
hwndSelf
,
nItem
,
&
lvFindInfo
.
pt
);
SendMessageW
(
infoPtr
->
hwndSelf
,
LVM_GETITEMPOSITION
,
nItem
,
(
LPARAM
)
&
lvFindInfo
.
pt
);
while
((
nItem
=
ListView_FindItemW
(
infoPtr
->
hwndSelf
,
nItem
,
&
lvFindInfo
))
!=
-
1
)
{
if
((
ListView_GetItemState
(
infoPtr
->
hwndSelf
,
nItem
,
uMask
)
&
uMask
)
==
uMask
)
...
...
@@ -5854,7 +5854,7 @@ static INT LISTVIEW_GetNextItem(LISTVIEW_INFO *infoPtr, INT nItem, UINT uFlags)
}
lvFindInfo
.
flags
=
LVFI_NEARESTXY
;
lvFindInfo
.
vkDirection
=
VK_DOWN
;
ListView_GetItemPosition
(
infoPtr
->
hwndSelf
,
nItem
,
&
lvFindInfo
.
pt
);
SendMessageW
(
infoPtr
->
hwndSelf
,
LVM_GETITEMPOSITION
,
nItem
,
(
LPARAM
)
&
lvFindInfo
.
pt
);
while
((
nItem
=
ListView_FindItemW
(
infoPtr
->
hwndSelf
,
nItem
,
&
lvFindInfo
))
!=
-
1
)
{
if
((
LISTVIEW_GetItemState
(
infoPtr
,
nItem
,
uMask
)
&
uMask
)
==
uMask
)
...
...
@@ -5890,7 +5890,7 @@ static INT LISTVIEW_GetNextItem(LISTVIEW_INFO *infoPtr, INT nItem, UINT uFlags)
}
lvFindInfo
.
flags
=
LVFI_NEARESTXY
;
lvFindInfo
.
vkDirection
=
VK_LEFT
;
ListView_GetItemPosition
(
infoPtr
->
hwndSelf
,
nItem
,
&
lvFindInfo
.
pt
);
SendMessageW
(
infoPtr
->
hwndSelf
,
LVM_GETITEMPOSITION
,
nItem
,
(
LPARAM
)
&
lvFindInfo
.
pt
);
while
((
nItem
=
ListView_FindItemW
(
infoPtr
->
hwndSelf
,
nItem
,
&
lvFindInfo
))
!=
-
1
)
{
if
((
ListView_GetItemState
(
infoPtr
->
hwndSelf
,
nItem
,
uMask
)
&
uMask
)
==
uMask
)
...
...
@@ -5926,7 +5926,7 @@ static INT LISTVIEW_GetNextItem(LISTVIEW_INFO *infoPtr, INT nItem, UINT uFlags)
}
lvFindInfo
.
flags
=
LVFI_NEARESTXY
;
lvFindInfo
.
vkDirection
=
VK_RIGHT
;
ListView_GetItemPosition
(
infoPtr
->
hwndSelf
,
nItem
,
&
lvFindInfo
.
pt
);
SendMessageW
(
infoPtr
->
hwndSelf
,
LVM_GETITEMPOSITION
,
nItem
,
(
LPARAM
)
&
lvFindInfo
.
pt
);
while
((
nItem
=
ListView_FindItemW
(
infoPtr
->
hwndSelf
,
nItem
,
&
lvFindInfo
))
!=
-
1
)
{
if
((
LISTVIEW_GetItemState
(
infoPtr
,
nItem
,
uMask
)
&
uMask
)
==
uMask
)
...
...
@@ -8907,7 +8907,7 @@ static void LISTVIEW_UpdateSize(LISTVIEW_INFO *infoPtr)
hl
.
prc
=
&
infoPtr
->
rcList
;
hl
.
pwpos
=
&
wp
;
Header_Layout
(
infoPtr
->
hwndHeader
,
&
hl
);
SendMessageW
(
infoPtr
->
hwndHeader
,
HDM_LAYOUT
,
0
,
(
LPARAM
)
&
hl
);
SetWindowPos
(
wp
.
hwnd
,
wp
.
hwndInsertAfter
,
wp
.
x
,
wp
.
y
,
wp
.
cx
,
wp
.
cy
,
wp
.
flags
);
...
...
@@ -8985,7 +8985,7 @@ static INT LISTVIEW_StyleChanged(LISTVIEW_INFO *infoPtr, WPARAM wStyleType,
hl
.
prc
=
&
infoPtr
->
rcList
;
hl
.
pwpos
=
&
wp
;
Header_Layout
(
infoPtr
->
hwndHeader
,
&
hl
);
SendMessageW
(
infoPtr
->
hwndHeader
,
HDM_LAYOUT
,
0
,
(
LPARAM
)
&
hl
);
SetWindowPos
(
infoPtr
->
hwndHeader
,
infoPtr
->
hwndSelf
,
wp
.
x
,
wp
.
y
,
wp
.
cx
,
wp
.
cy
,
wp
.
flags
);
}
...
...
dlls/comctl32/pager.c
View file @
2dfe50aa
...
...
@@ -59,7 +59,6 @@
#include "wingdi.h"
#include "winuser.h"
#include "winnls.h"
#include "windowsx.h"
#include "commctrl.h"
#include "comctl32.h"
#include "wine/debug.h"
...
...
@@ -1315,7 +1314,7 @@ PAGER_WindowProc (HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
return
PAGER_Destroy
(
infoPtr
);
case
WM_SIZE
:
return
PAGER_Size
(
infoPtr
,
(
INT
)
wParam
,
GET_X_LPARAM
(
lParam
),
GET_Y_LPARAM
(
lParam
));
return
PAGER_Size
(
infoPtr
,
(
INT
)
wParam
,
(
short
)
LOWORD
(
lParam
),
(
short
)
HIWORD
(
lParam
));
case
WM_NCPAINT
:
return
PAGER_NCPaint
(
infoPtr
,
(
HRGN
)
wParam
);
...
...
@@ -1330,18 +1329,18 @@ PAGER_WindowProc (HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
return
PAGER_NCCalcSize
(
infoPtr
,
wParam
,
(
LPRECT
)
lParam
);
case
WM_NCHITTEST
:
return
PAGER_NCHitTest
(
infoPtr
,
GET_X_LPARAM
(
lParam
),
GET_Y_LPARAM
(
lParam
));
return
PAGER_NCHitTest
(
infoPtr
,
(
short
)
LOWORD
(
lParam
),
(
short
)
HIWORD
(
lParam
));
case
WM_MOUSEMOVE
:
if
(
infoPtr
->
bForward
&&
infoPtr
->
hwndChild
)
PostMessageW
(
infoPtr
->
hwndChild
,
WM_MOUSEMOVE
,
wParam
,
lParam
);
return
PAGER_MouseMove
(
infoPtr
,
(
INT
)
wParam
,
GET_X_LPARAM
(
lParam
),
GET_Y_LPARAM
(
lParam
));
return
PAGER_MouseMove
(
infoPtr
,
(
INT
)
wParam
,
(
short
)
LOWORD
(
lParam
),
(
short
)
HIWORD
(
lParam
));
case
WM_LBUTTONDOWN
:
return
PAGER_LButtonDown
(
infoPtr
,
(
INT
)
wParam
,
GET_X_LPARAM
(
lParam
),
GET_Y_LPARAM
(
lParam
));
return
PAGER_LButtonDown
(
infoPtr
,
(
INT
)
wParam
,
(
short
)
LOWORD
(
lParam
),
(
short
)
HIWORD
(
lParam
));
case
WM_LBUTTONUP
:
return
PAGER_LButtonUp
(
infoPtr
,
(
INT
)
wParam
,
GET_X_LPARAM
(
lParam
),
GET_Y_LPARAM
(
lParam
));
return
PAGER_LButtonUp
(
infoPtr
,
(
INT
)
wParam
,
(
short
)
LOWORD
(
lParam
),
(
short
)
HIWORD
(
lParam
));
case
WM_ERASEBKGND
:
return
PAGER_EraseBackground
(
infoPtr
,
(
HDC
)
wParam
);
...
...
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