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
fab2e562
Commit
fab2e562
authored
Mar 21, 2006
by
Mike McCormack
Committed by
Alexandre Julliard
Mar 21, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winefile: Fix some gcc 4.1 warnings caused by commctrl.h macros.
parent
a187ab05
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
7 deletions
+7
-7
winefile.c
programs/winefile/winefile.c
+7
-7
No files found.
programs/winefile/winefile.c
View file @
fab2e562
...
@@ -2595,7 +2595,7 @@ static void resize_tree(ChildWnd* child, int cx, int cy)
...
@@ -2595,7 +2595,7 @@ static void resize_tree(ChildWnd* child, int cx, int cy)
hdl
.
prc
=
&
rt
;
hdl
.
prc
=
&
rt
;
hdl
.
pwpos
=
&
wp
;
hdl
.
pwpos
=
&
wp
;
Header_Layout
(
child
->
left
.
hwndHeader
,
&
hdl
);
SendMessage
(
child
->
left
.
hwndHeader
,
HDM_LAYOUT
,
0
,
(
LPARAM
)
&
hdl
);
DeferWindowPos
(
hdwp
,
child
->
left
.
hwndHeader
,
wp
.
hwndInsertAfter
,
DeferWindowPos
(
hdwp
,
child
->
left
.
hwndHeader
,
wp
.
hwndInsertAfter
,
wp
.
x
-
1
,
wp
.
y
,
child
->
split_pos
-
SPLIT_WIDTH
/
2
+
1
,
wp
.
cy
,
wp
.
flags
);
wp
.
x
-
1
,
wp
.
y
,
child
->
split_pos
-
SPLIT_WIDTH
/
2
+
1
,
wp
.
cy
,
wp
.
flags
);
...
@@ -2631,7 +2631,7 @@ static HWND create_header(HWND parent, Pane* pane, int id)
...
@@ -2631,7 +2631,7 @@ static HWND create_header(HWND parent, Pane* pane, int id)
hdi
.
pszText
=
g_pos_names
[
idx
];
hdi
.
pszText
=
g_pos_names
[
idx
];
hdi
.
fmt
=
HDF_STRING
|
g_pos_align
[
idx
];
hdi
.
fmt
=
HDF_STRING
|
g_pos_align
[
idx
];
hdi
.
cxy
=
pane
->
widths
[
idx
];
hdi
.
cxy
=
pane
->
widths
[
idx
];
Header_InsertItem
(
hwnd
,
idx
,
&
hdi
);
SendMessage
(
hwnd
,
HDM_INSERTITEM
,
idx
,
(
LPARAM
)
&
hdi
);
}
}
return
hwnd
;
return
hwnd
;
...
@@ -3589,18 +3589,18 @@ static void set_header(Pane* pane)
...
@@ -3589,18 +3589,18 @@ static void set_header(Pane* pane)
for
(;
x
+
pane
->
widths
[
i
]
<
scroll_pos
&&
i
<
COLUMNS
;
i
++
)
{
for
(;
x
+
pane
->
widths
[
i
]
<
scroll_pos
&&
i
<
COLUMNS
;
i
++
)
{
x
+=
pane
->
widths
[
i
];
x
+=
pane
->
widths
[
i
];
Header_SetItem
(
pane
->
hwndHeader
,
i
,
&
item
);
SendMessage
(
pane
->
hwndHeader
,
HDM_SETITEM
,
i
,
(
LPARAM
)
&
item
);
}
}
if
(
i
<
COLUMNS
)
{
if
(
i
<
COLUMNS
)
{
x
+=
pane
->
widths
[
i
];
x
+=
pane
->
widths
[
i
];
item
.
cxy
=
x
-
scroll_pos
;
item
.
cxy
=
x
-
scroll_pos
;
Header_SetItem
(
pane
->
hwndHeader
,
i
++
,
&
item
);
SendMessage
(
pane
->
hwndHeader
,
HDM_SETITEM
,
i
++
,
(
LPARAM
)
&
item
);
for
(;
i
<
COLUMNS
;
i
++
)
{
for
(;
i
<
COLUMNS
;
i
++
)
{
item
.
cxy
=
pane
->
widths
[
i
];
item
.
cxy
=
pane
->
widths
[
i
];
x
+=
pane
->
widths
[
i
];
x
+=
pane
->
widths
[
i
];
Header_SetItem
(
pane
->
hwndHeader
,
i
,
&
item
);
SendMessage
(
pane
->
hwndHeader
,
HDM_SETITEM
,
i
,
(
LPARAM
)
&
item
);
}
}
}
}
}
}
...
@@ -3619,7 +3619,7 @@ static LRESULT pane_notify(Pane* pane, NMHDR* pnmh)
...
@@ -3619,7 +3619,7 @@ static LRESULT pane_notify(Pane* pane, NMHDR* pnmh)
GetClientRect
(
pane
->
hwnd
,
&
clnt
);
GetClientRect
(
pane
->
hwnd
,
&
clnt
);
/* move immediate to simulate HDS_FULLDRAG (for now [04/2000] not really needed with WINELIB) */
/* move immediate to simulate HDS_FULLDRAG (for now [04/2000] not really needed with WINELIB) */
Header_SetItem
(
pane
->
hwndHeader
,
idx
,
phdn
->
pitem
);
SendMessage
(
pane
->
hwndHeader
,
HDM_SETITEM
,
idx
,
(
LPARAM
)
phdn
->
pitem
);
pane
->
widths
[
idx
]
+=
dx
;
pane
->
widths
[
idx
]
+=
dx
;
...
@@ -3668,7 +3668,7 @@ static LRESULT pane_notify(Pane* pane, NMHDR* pnmh)
...
@@ -3668,7 +3668,7 @@ static LRESULT pane_notify(Pane* pane, NMHDR* pnmh)
item
.
mask
=
HDI_WIDTH
;
item
.
mask
=
HDI_WIDTH
;
item
.
cxy
=
pane
->
widths
[
phdn
->
iItem
];
item
.
cxy
=
pane
->
widths
[
phdn
->
iItem
];
Header_SetItem
(
pane
->
hwndHeader
,
phdn
->
iItem
,
&
item
);
SendMessage
(
pane
->
hwndHeader
,
HDM_SETITEM
,
phdn
->
iItem
,
(
LPARAM
)
&
item
);
InvalidateRect
(
pane
->
hwnd
,
0
,
TRUE
);
InvalidateRect
(
pane
->
hwnd
,
0
,
TRUE
);
break
;}
break
;}
}
}
...
...
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