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
ec328c1e
Commit
ec328c1e
authored
Apr 13, 2006
by
Mikołaj Zalewski
Committed by
Alexandre Julliard
Apr 14, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winefile: Use header full drag.
parent
61512b20
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
6 deletions
+2
-6
winefile.c
programs/winefile/winefile.c
+2
-6
No files found.
programs/winefile/winefile.c
View file @
ec328c1e
...
...
@@ -2618,7 +2618,7 @@ static HWND create_header(HWND parent, Pane* pane, int id)
HD_ITEM
hdi
;
int
idx
;
HWND
hwnd
=
CreateWindow
(
WC_HEADER
,
0
,
WS_CHILD
|
WS_VISIBLE
|
HDS_HORZ
/*TODO: |HDS_BUTTONS + sort orders*/
,
HWND
hwnd
=
CreateWindow
(
WC_HEADER
,
0
,
WS_CHILD
|
WS_VISIBLE
|
HDS_HORZ
|
HDS_FULLDRAG
/*TODO: |HDS_BUTTONS + sort orders*/
,
0
,
0
,
0
,
0
,
parent
,
(
HMENU
)
id
,
Globals
.
hInstance
,
0
);
if
(
!
hwnd
)
return
0
;
...
...
@@ -3608,8 +3608,7 @@ static void set_header(Pane* pane)
static
LRESULT
pane_notify
(
Pane
*
pane
,
NMHDR
*
pnmh
)
{
switch
(
pnmh
->
code
)
{
case
HDN_TRACK
:
case
HDN_ENDTRACK
:
{
case
HDN_ITEMCHANGED
:
{
HD_NOTIFY
*
phdn
=
(
HD_NOTIFY
*
)
pnmh
;
int
idx
=
phdn
->
iItem
;
int
dx
=
phdn
->
pitem
->
cxy
-
pane
->
widths
[
idx
];
...
...
@@ -3618,9 +3617,6 @@ static LRESULT pane_notify(Pane* pane, NMHDR* pnmh)
RECT
clnt
;
GetClientRect
(
pane
->
hwnd
,
&
clnt
);
/* move immediate to simulate HDS_FULLDRAG (for now [04/2000] not really needed with WINELIB) */
SendMessage
(
pane
->
hwndHeader
,
HDM_SETITEM
,
idx
,
(
LPARAM
)
phdn
->
pitem
);
pane
->
widths
[
idx
]
+=
dx
;
for
(
i
=
idx
;
++
i
<=
COLUMNS
;
)
...
...
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