<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[WM_DROPFILES mit SendMessage() senden]]></title><description><![CDATA[<p>Hallo!</p>
<p>Ich möchte sozusagen eine WM_DROPFILES Message simulieren, d.h. ich möchte diese Nachricht per SendMessage() an ein Steuerelement senden. Das Problem ist nur, dass WM_DROPFILES als WPARAM ein HDROP Handle benötigt und ich habe keine Ahnung, wie ich ein solches erstellen kann. Kann mir da jemand weiterhelfen?</p>
<p>Gruß veryxRV</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/192010/wm_dropfiles-mit-sendmessage-senden</link><generator>RSS for Node</generator><lastBuildDate>Wed, 01 Jul 2026 00:31:51 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/192010.rss" rel="self" type="application/rss+xml"/><pubDate>Sun, 09 Sep 2007 14:41:02 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to WM_DROPFILES mit SendMessage() senden on Sun, 09 Sep 2007 14:41:02 GMT]]></title><description><![CDATA[<p>Hallo!</p>
<p>Ich möchte sozusagen eine WM_DROPFILES Message simulieren, d.h. ich möchte diese Nachricht per SendMessage() an ein Steuerelement senden. Das Problem ist nur, dass WM_DROPFILES als WPARAM ein HDROP Handle benötigt und ich habe keine Ahnung, wie ich ein solches erstellen kann. Kann mir da jemand weiterhelfen?</p>
<p>Gruß veryxRV</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1361930</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1361930</guid><dc:creator><![CDATA[veryxRV]]></dc:creator><pubDate>Sun, 09 Sep 2007 14:41:02 GMT</pubDate></item><item><title><![CDATA[Reply to WM_DROPFILES mit SendMessage() senden on Mon, 10 Sep 2007 08:23:11 GMT]]></title><description><![CDATA[<p>Hallo,</p>
<p>hast du dafür schon eine Lösung gefunden? Ich habe exakt das<br />
gleiche Problem. Mein Control muss ebenfalls auf diesem Weg<br />
Text übermittelt bekommen.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1362365</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1362365</guid><dc:creator><![CDATA[Values]]></dc:creator><pubDate>Mon, 10 Sep 2007 08:23:11 GMT</pubDate></item><item><title><![CDATA[Reply to WM_DROPFILES mit SendMessage() senden on Mon, 10 Sep 2007 08:38:06 GMT]]></title><description><![CDATA[<p>Warum eigentlich simulieren? Implementiert doch einen echten DragDrop.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1362377</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1362377</guid><dc:creator><![CDATA[Black Shadow]]></dc:creator><pubDate>Mon, 10 Sep 2007 08:38:06 GMT</pubDate></item><item><title><![CDATA[Reply to WM_DROPFILES mit SendMessage() senden on Mon, 10 Sep 2007 12:54:14 GMT]]></title><description><![CDATA[<p>Nein, habe leider noch keine Lösung.</p>
<p>Ich verwende ja auch einen echten Drag&amp;Drop, möchte das Hinzufügen der Liste von Dateien aber auch über einen OpenFileDialog ermöglichen. Damit ich den Code unter der WM_DROPFILES case Marke nicht in eine Funktion packen muss, würde ich die in dem OpenFileDialog selektierte Datei gerne an WM_DROPFILES weitergeben.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1362559</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1362559</guid><dc:creator><![CDATA[veryxRV]]></dc:creator><pubDate>Mon, 10 Sep 2007 12:54:14 GMT</pubDate></item><item><title><![CDATA[Reply to WM_DROPFILES mit SendMessage() senden on Sat, 15 Sep 2007 17:16:51 GMT]]></title><description><![CDATA[<p>Such mal in der MSDN nach DROPFILES:</p>
<pre><code>typedef struct _DROPFILES 
    { 
    DWORD pFiles; 
    POINT pt; 
    BOOL fNC; 
    BOOL fWide; 
    } DROPFILES, FAR * LPDROPFILES;
</code></pre>
<p>Defines the CF_HDROP and CF_PRINTERS clipboard formats. In the CF_HDROP case, the data that follows is a double null-terminated list of file names. For CF_PRINTERS, the data that follows are the printer friendly names.</p>
<p>pFiles<br />
Offset of the file list from the beginning of this structure, in bytes.<br />
pt<br />
Drop point. The coordinates depend on fNC.<br />
fNC<br />
Nonclient area flag. If this member is TRUE, pt specifies the screen coordinates of a point in a window's nonclient area. If it is FALSE, pt specifies the client coordinates of a point in the client area.<br />
fWide<br />
Value that indicates if the file contains wide characters. This value is nonzero if it does contain wide characters, or zero otherwise.</p>
<p>Der WPARAM Parameter ist ein Zeiger auf die DROPFILES Structur.<br />
Hinter der Struktur kommt eine Liste mit den Dateien:</p>
<pre><code>typedef struct 
  {
  DROPFILES sDrop;
  char      sFiles[1];
  }DropData; 

DropData *ptr;
char     *files;

ptr = (DropData*)malloc(sizeof(DropData)+FileListSize);
...
files = ptr-&gt;sFiles;

for(i=0;i&lt;...;i++)
  {
  strcpy(files,Filename[i]);
  files+=strlen(files)+1;
  }

*files=0;

SendMessage(hwnd,WM_DROPFILES,(WPARAM)ptr,0);
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/1366006</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1366006</guid><dc:creator><![CDATA[AZ]]></dc:creator><pubDate>Sat, 15 Sep 2007 17:16:51 GMT</pubDate></item></channel></rss>