@@ -24,11 +24,12 @@ https://docs.microsoft.com/en-us/windows/win32/api/shobjidl_core/nn-shobjidl_cor
24
24
25
25
For API reviewers, We want a unified API surface between COM and WinRT that works in both UWP and Win32.
26
26
27
- We could have one API focusing on Win32 types and require the end dev to convert from UWP types to Win32 (which we've done).
28
- Or we could have one API focusing on UWP types and require the end dev to convert Win32 to UWP.
29
- Or we could have two sets of methods one for Win32 and one for UWP types.
27
+ We could:
28
+ 1 . Have one API focusing on Win32 types and require the end dev to convert from UWP types to Win32 (which we've done).
29
+ 2 . Have one API focusing on UWP types and require the end dev to convert Win32 to UWP.
30
+ 3 . Have two sets of methods one for Win32 and one for UWP types.
30
31
Or we could do (1) or (2) and provide a conversion function.
31
- Because the conversion is simple and we have a large Win32 user base we chose (1).
32
+ Because the conversion is simple and we have a large Win32 user base we chose (1) and provided a conversion function .
32
33
33
34
34
35
# Description
@@ -56,7 +57,7 @@ HRESULT DropTarget::DragEnter(IDataObject* dataObject,
56
57
POINTL point,
57
58
DWORD* effect)
58
59
{
59
- POINT point = { cursorPosition.x, cursorPosition.y};
60
+ POINT point = { cursorPosition.x, cursorPosition.y };
60
61
// Tell the helper that we entered so it can update the drag image and get
61
62
// the correct effect.
62
63
wil::com_ptr<IDropTargetHelper > dropHelper = DropHelper();
@@ -75,7 +76,7 @@ HRESULT DropTarget::DragOver(DWORD keyState,
75
76
POINTL point,
76
77
DWORD* effect)
77
78
{
78
- POINT point = { cursorPosition.x, cursorPosition.y};
79
+ POINT point = { cursorPosition.x, cursorPosition.y };
79
80
// Tell the helper that we moved over it so it can update the drag image
80
81
// and get the correct effect.
81
82
wil::com_ptr<IDropTargetHelper > dropHelper = DropHelper();
@@ -108,7 +109,7 @@ HRESULT DropTarget::Drop(IDataObject* dataObject,
108
109
POINTL point,
109
110
DWORD* effect)
110
111
{
111
- POINT point = { cursorPosition.x, cursorPosition.y};
112
+ POINT point = { cursorPosition.x, cursorPosition.y };
112
113
// Tell the helper that we dropped onto it so it can update the drag image
113
114
// and get the correct effect.
114
115
wil::com_ptr<IDropTargetHelper > dropHelper = DropHelper();
0 commit comments