PRB: OLE Drop Target Does Not Permit Drop (139648)
The information in this article applies to:
- The Microsoft Foundation Classes (MFC), when used with:
- Microsoft Visual C++ for Windows, 16-bit edition 1.5
- Microsoft Visual C++ for Windows, 16-bit edition 1.51
- Microsoft Visual C++ for Windows, 16-bit edition 1.52
- Microsoft Visual C++, 32-bit Editions 2.0
- Microsoft Visual C++, 32-bit Editions 2.1
- Microsoft Visual C++, 32-bit Editions 2.2
This article was previously published under Q139648 SYMPTOMS
When you drag an OLE object over a given drop target window, the cursor
feedback indicates that a drop is not allowed. However, the same object can
be dropped on other drop targets successfully, and other objects can be
dropped on the given drop target.
CAUSE
The object descriptor for the object indicates the size of the object is
(0,0), and the drop target window's OnDragOver method is using the object
rectangle to determine whether the object is within the client area of the
window.
RESOLUTION
If the computed position rectangle for a data object is empty, inflate the
rectangle to size (1,1) before testing whether the rectangle is within the
client area of the drop target window.
STATUS
This behavior is by design.
Modification Type: | Major | Last Reviewed: | 12/1/2003 |
---|
Keywords: | kbDragDrop kbprb KB139648 |
---|
|