Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
9e4771fe
Commit
9e4771fe
authored
Mar 11, 2004
by
Robert Shearman
Committed by
Alexandre Julliard
Mar 11, 2004
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- Document control completeness.
- Remove unneeded include. - Fix TEXT define. - Fix tabs. - Small optimisation in DrawInsert.
parent
bb6d87f6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
23 additions
and
10 deletions
+23
-10
draglist.c
dlls/comctl32/draglist.c
+23
-10
No files found.
dlls/comctl32/draglist.c
View file @
9e4771fe
...
...
@@ -18,6 +18,15 @@
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*
* NOTES
*
* This code was audited for completeness against the documented features
* of Comctl32.dll version 6.0 on Mar. 10, 2004, by Robert Shearman.
*
* Unless otherwise noted, we believe this code to be complete, as per
* the specification mentioned above.
* If you discover missing features or bugs please note them below.
*
*/
#include <stdarg.h>
...
...
@@ -27,16 +36,15 @@
#include "wingdi.h"
#include "winuser.h"
#include "winnls.h"
#include "winnt.h"
#include "commctrl.h"
#include "comctl32.h"
#include "wine/debug.h"
WINE_DEFAULT_DEBUG_CHANNEL
(
commctrl
);
#ifndef TEXT
#
define TEXT(string) string
#
endif
/* for compiler compatibility we only accept literal ASCII strings */
#
undef TEXT
#
define TEXT(string) string
#define DRAGLIST_SUBCLASSID 0
#define DRAGLIST_SCROLLPERIOD 200
...
...
@@ -50,17 +58,18 @@ WINE_DEFAULT_DEBUG_CHANNEL(commctrl);
/* internal Wine specific data for the drag list control */
typedef
struct
_DRAGLISTDATA
{
/* are we currently in dragging mode? */
BOOL
dragging
;
/* are we currently in dragging mode? */
BOOL
dragging
;
/* cursor to use as determined by DL_DRAGGING notification.
/* cursor to use as determined by DL_DRAGGING notification.
* NOTE: as we use LoadCursor we don't have to use DeleteCursor
* when we are finished with it */
HCURSOR
cursor
;
HCURSOR
cursor
;
/* optimisation so that we don't have to load the cursor
* all of the time whilst dragging */
LRESULT
last_dragging_response
;
LRESULT
last_dragging_response
;
/* prevents flicker with drawing drag arrow */
RECT
last_drag_icon_rect
;
}
DRAGLISTDATA
;
...
...
@@ -259,6 +268,9 @@ VOID WINAPI DrawInsert (HWND hwndParent, HWND hwndLB, INT nItem)
if
(
!
GetWindowSubclass
(
hwndLB
,
DragList_SubclassWindowProc
,
DRAGLIST_SUBCLASSID
,
(
DWORD_PTR
*
)
&
data
))
return
;
if
(
nItem
<
0
)
SetRectEmpty
(
&
rcDragIcon
);
/* prevent flicker by only redrawing when necessary */
if
(
!
EqualRect
(
&
rcDragIcon
,
&
data
->
last_drag_icon_rect
))
{
...
...
@@ -266,6 +278,8 @@ VOID WINAPI DrawInsert (HWND hwndParent, HWND hwndLB, INT nItem)
RedrawWindow
(
hwndParent
,
&
data
->
last_drag_icon_rect
,
NULL
,
RDW_INTERNALPAINT
|
RDW_ERASE
|
RDW_INVALIDATE
|
RDW_UPDATENOW
);
CopyRect
(
&
data
->
last_drag_icon_rect
,
&
rcDragIcon
);
if
(
nItem
>=
0
)
{
hdc
=
GetDC
(
hwndParent
);
...
...
@@ -275,7 +289,6 @@ VOID WINAPI DrawInsert (HWND hwndParent, HWND hwndLB, INT nItem)
ReleaseDC
(
hwndParent
,
hdc
);
}
}
CopyRect
(
&
data
->
last_drag_icon_rect
,
&
rcDragIcon
);
}
/***********************************************************************
...
...
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