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
50a0c8f7
Commit
50a0c8f7
authored
Mar 03, 2005
by
Dimitrie O. Paun
Committed by
Alexandre Julliard
Mar 03, 2005
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Unicodification. Small cleanups.
parent
bfb6d642
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
11 deletions
+17
-11
draglist.c
dlls/comctl32/draglist.c
+6
-10
commctrl.h
include/commctrl.h
+11
-1
No files found.
dlls/comctl32/draglist.c
View file @
50a0c8f7
...
...
@@ -42,10 +42,6 @@
WINE_DEFAULT_DEBUG_CHANNEL
(
commctrl
);
/* for compiler compatibility we only accept literal ASCII strings */
#undef TEXT
#define TEXT(string) string
#define DRAGLIST_SUBCLASSID 0
#define DRAGLIST_SCROLLPERIOD 200
#define DRAGLIST_TIMERID 666
...
...
@@ -95,7 +91,7 @@ static LRESULT DragList_Notify(HWND hwndLB, UINT uNotification)
}
/* cleans up after dragging */
static
inline
void
DragList_EndDrag
(
HWND
hwnd
,
DRAGLISTDATA
*
data
)
static
void
DragList_EndDrag
(
HWND
hwnd
,
DRAGLISTDATA
*
data
)
{
KillTimer
(
hwnd
,
DRAGLIST_TIMERID
);
ReleaseCapture
();
...
...
@@ -207,12 +203,12 @@ DragList_SubclassWindowProc(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam,
*/
BOOL
WINAPI
MakeDragList
(
HWND
hwndLB
)
{
DRAGLISTDATA
*
data
=
Alloc
(
sizeof
(
DRAGLISTDATA
));
DRAGLISTDATA
*
data
=
Alloc
(
sizeof
(
DRAGLISTDATA
));
TRACE
(
"(%p)
\n
"
,
hwndLB
);
if
(
!
uDragListMessage
)
uDragListMessage
=
RegisterWindowMessage
A
(
DRAGLISTMSGSTRING
);
uDragListMessage
=
RegisterWindowMessage
W
(
DRAGLISTMSGSTRINGW
);
return
SetWindowSubclass
(
hwndLB
,
DragList_SubclassWindowProc
,
DRAGLIST_SUBCLASSID
,
(
DWORD_PTR
)
data
);
}
...
...
@@ -301,14 +297,14 @@ INT WINAPI LBItemFromPt (HWND hwndLB, POINT pt, BOOL bAutoScroll)
ScreenToClient
(
hwndLB
,
&
pt
);
GetClientRect
(
hwndLB
,
&
rcClient
);
nIndex
=
(
INT
)
SendMessage
A
(
hwndLB
,
LB_GETTOPINDEX
,
0
,
0
);
nIndex
=
(
INT
)
SendMessage
W
(
hwndLB
,
LB_GETTOPINDEX
,
0
,
0
);
if
(
PtInRect
(
&
rcClient
,
pt
))
{
/* point is inside -- get the item index */
while
(
TRUE
)
{
if
(
SendMessage
A
(
hwndLB
,
LB_GETITEMRECT
,
nIndex
,
(
LPARAM
)
&
rcClient
)
==
LB_ERR
)
if
(
SendMessage
W
(
hwndLB
,
LB_GETITEMRECT
,
nIndex
,
(
LPARAM
)
&
rcClient
)
==
LB_ERR
)
return
-
1
;
if
(
PtInRect
(
&
rcClient
,
pt
))
...
...
@@ -338,7 +334,7 @@ INT WINAPI LBItemFromPt (HWND hwndLB, POINT pt, BOOL bAutoScroll)
dwLastScrollTime
=
dwScrollTime
;
SendMessage
A
(
hwndLB
,
LB_SETTOPINDEX
,
(
WPARAM
)
nIndex
,
0
);
SendMessage
W
(
hwndLB
,
LB_SETTOPINDEX
,
(
WPARAM
)
nIndex
,
0
);
}
return
-
1
;
...
...
include/commctrl.h
View file @
50a0c8f7
...
...
@@ -367,7 +367,17 @@ typedef struct tagDRAGLISTINFO
#define DL_COPYCURSOR 2
#define DL_MOVECURSOR 3
#define DRAGLISTMSGSTRING TEXT("commctrl_DragListMsg")
#define DRAGLISTMSGSTRINGA "commctrl_DragListMsg"
#if defined(__GNUC__)
# define DRAGLISTMSGSTRINGW (const WCHAR []){ 'c','o','m','m','c','t','r','l', \
'_','D','r','a','g','L','i','s','t','M','s','g',0 }
#elif defined(_MSC_VER)
# define DRAGLISTMSGSTRINGW L"commctrl_DragListMsg"
#else
static
const
WCHAR
DRAGLISTMSGSTRINGW
[]
=
{
'c'
,
'o'
,
'm'
,
'm'
,
'c'
,
't'
,
'r'
,
'l'
,
\
'_'
,
'D'
,
'r'
,
'a'
,
'g'
,
'L'
,
'i'
,
's'
,
't'
,
'M'
,
's'
,
'g'
,
0
};
#endif
#define DRAGLISTMSGSTRING WINELIB_NAME_AW(DRAGLISTMSGSTRING)
BOOL
WINAPI
MakeDragList
(
HWND
);
VOID
WINAPI
DrawInsert
(
HWND
,
HWND
,
INT
);
...
...
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