Skip to content

Commit 419a3a3

Browse files
authored
Update NotifyDropTargetAction.md
1 parent 1c298ec commit 419a3a3

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

specs/NotifyDropTargetAction.md

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,12 @@ https://docs.microsoft.com/en-us/windows/win32/api/shobjidl_core/nn-shobjidl_cor
2424

2525
For API reviewers, We want a unified API surface between COM and WinRT that works in both UWP and Win32.
2626

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.
3031
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.
3233

3334

3435
# Description
@@ -56,7 +57,7 @@ HRESULT DropTarget::DragEnter(IDataObject* dataObject,
5657
POINTL point,
5758
DWORD* effect)
5859
{
59-
POINT point = { cursorPosition.x, cursorPosition.y};
60+
POINT point = { cursorPosition.x, cursorPosition.y };
6061
// Tell the helper that we entered so it can update the drag image and get
6162
// the correct effect.
6263
wil::com_ptr<IDropTargetHelper> dropHelper = DropHelper();
@@ -75,7 +76,7 @@ HRESULT DropTarget::DragOver(DWORD keyState,
7576
POINTL point,
7677
DWORD* effect)
7778
{
78-
POINT point = { cursorPosition.x, cursorPosition.y};
79+
POINT point = { cursorPosition.x, cursorPosition.y };
7980
// Tell the helper that we moved over it so it can update the drag image
8081
// and get the correct effect.
8182
wil::com_ptr<IDropTargetHelper> dropHelper = DropHelper();
@@ -108,7 +109,7 @@ HRESULT DropTarget::Drop(IDataObject* dataObject,
108109
POINTL point,
109110
DWORD* effect)
110111
{
111-
POINT point = { cursorPosition.x, cursorPosition.y};
112+
POINT point = { cursorPosition.x, cursorPosition.y };
112113
// Tell the helper that we dropped onto it so it can update the drag image
113114
// and get the correct effect.
114115
wil::com_ptr<IDropTargetHelper> dropHelper = DropHelper();

0 commit comments

Comments
 (0)