Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p><strong><code>FORMATETC</code></strong> is a type of application clipboard, for lack of a better term. In order to pull off some of the visual tricks of draging around the tree node, it has to be copied into this clipboard with its source description. The source control loads its info into the <code>FORMATETC</code> clipboard and sends it to the target object. It looks like the error occurs on the drop and not on the drag. The <code>DV</code> in <code>DV_E_FORMATETC</code> typically indicates the error occurrs on the drop step.<br> The destination doesn't look like it likes what you are droping on it. The clipboard may be corrupt or the drop destination may not be configured to understand it. </p> <p>I recommend you try one of two things. </p> <ol> <li>Remove the original tree structure and destination. Dump your dlls. Close everything. Open up and put the treeview and destination back on the form. It may have just been poorly formed and not fully populating the <code>FORMATETC</code> structure.</li> <li>Try putting another treeview and droping to that. If you are droping to another tree and it works you know your oranges to oranges work and it isn't the treeview. It may be the destination if it is a grid or listview. You may need to change those structures to be able to receive the drop.</li> </ol> <p>Not that it helps but the structure is something like this: </p> <pre><code>typedef struct tagFORMATETC { CLIPFORMAT cfFormat; DVTARGETDEVICE *ptd; DWORD dwAspect; LONG lindex; DWORD tymed; } FORMATETC, *LPFORMATETC; </code></pre>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload