<?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[wie mappe ich eine MSG von hand ohne den Class Wizard zu nutzen kann mir dajemand helfen bitte?]]></title><description><![CDATA[<p>notxt</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/64352/wie-mappe-ich-eine-msg-von-hand-ohne-den-class-wizard-zu-nutzen-kann-mir-dajemand-helfen-bitte</link><generator>RSS for Node</generator><lastBuildDate>Thu, 04 Jun 2026 21:56:37 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/64352.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 10 Feb 2004 09:22:22 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to wie mappe ich eine MSG von hand ohne den Class Wizard zu nutzen kann mir dajemand helfen bitte? on Tue, 10 Feb 2004 09:22:22 GMT]]></title><description><![CDATA[<p>notxt</p>
]]></description><link>https://www.c-plusplus.net/forum/post/455786</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/455786</guid><dc:creator><![CDATA[T1c4L]]></dc:creator><pubDate>Tue, 10 Feb 2004 09:22:22 GMT</pubDate></item><item><title><![CDATA[Reply to wie mappe ich eine MSG von hand ohne den Class Wizard zu nutzen kann mir dajemand helfen bitte? on Tue, 10 Feb 2004 09:29:14 GMT]]></title><description><![CDATA[<p>Du brauchst folgendes:</p>
<p>Die richtige Basisklasse.<br />
Eine Handlerfunktion.<br />
Eine Nachricht.</p>
<p>Da du weiter unten nach WM_DROPFILES geschrien hast, nehme ich die als Beispiel.</p>
<p>Gib WM_DROPFILES als Suchbegriff in der MSDN ein. Du bekommst zwei Treffer - davon ist die Funktion interessant, denn den Namen der Nachricht kennen wir ja.</p>
<p>Hier ist der Prototyp:</p>
<pre><code class="language-cpp">afx_msg void OnDropFiles( HDROP hDropInfo );
</code></pre>
<p>Der muss in den Header zu den anderen afx_msg Funktionen.</p>
<p>Dann guck dir noch die MessageMap im cpp an. Na? Geht dir ein Licht auf?<br />
Es gibt ein Makro dafür: ON_WM_DROPFILES()</p>
<p>So! War es so schwer? Wenn ja, dann beschäftige dich mal mit den Windowsnachrichten und wie das eigentlich funktioniert.</p>
<p><img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f642.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--slightly_smiling_face"
      title=":)"
      alt="🙂"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/post/455797</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/455797</guid><dc:creator><![CDATA[estartu]]></dc:creator><pubDate>Tue, 10 Feb 2004 09:29:14 GMT</pubDate></item><item><title><![CDATA[Reply to wie mappe ich eine MSG von hand ohne den Class Wizard zu nutzen kann mir dajemand helfen bitte? on Tue, 10 Feb 2004 09:39:37 GMT]]></title><description><![CDATA[<p>habe nen Link error beim compilieren</p>
<p>unresolved externals...</p>
<p>mhmmm klappt das bei dir ?</p>
<p>danke trotzdem sehr</p>
]]></description><link>https://www.c-plusplus.net/forum/post/455809</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/455809</guid><dc:creator><![CDATA[T1c4L]]></dc:creator><pubDate>Tue, 10 Feb 2004 09:39:37 GMT</pubDate></item><item><title><![CDATA[Reply to wie mappe ich eine MSG von hand ohne den Class Wizard zu nutzen kann mir dajemand helfen bitte? on Tue, 10 Feb 2004 09:48:56 GMT]]></title><description><![CDATA[<p>Hast du schon mal Alles neu gebaut?</p>
<p>Zeig mal die komplette Meldung und wie du die Hinweise umgesetzt hast.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/455824</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/455824</guid><dc:creator><![CDATA[estartu]]></dc:creator><pubDate>Tue, 10 Feb 2004 09:48:56 GMT</pubDate></item><item><title><![CDATA[Reply to wie mappe ich eine MSG von hand ohne den Class Wizard zu nutzen kann mir dajemand helfen bitte? on Tue, 10 Feb 2004 09:52:51 GMT]]></title><description><![CDATA[<p>header<br />
:<br />
// Generated message map functions<br />
//{{AFX_MSG(CFile_RenamerDlg)<br />
virtual BOOL OnInitDialog();<br />
afx_msg void OnPaint();<br />
afx_msg HCURSOR OnQueryDragIcon();<br />
afx_msg void OnExitBtn();</p>
<p>// WM_DROPFILES<br />
afx_msg void OnDropFiles( HDROP hDropInfo );</p>
<p>//}}AFX_MSG<br />
DECLARE_MESSAGE_MAP()<br />
cpp:</p>
<p>BEGIN_MESSAGE_MAP(CFile_RenamerDlg, CDialog)<br />
//{{AFX_MSG_MAP(CFile_RenamerDlg)<br />
ON_WM_PAINT()<br />
ON_WM_QUERYDRAGICON()<br />
ON_BN_CLICKED(IDC_EXIT_BTN, OnExitBtn)<br />
ON_WM_DROPFILES()<br />
//}}AFX_MSG_MAP<br />
END_MESSAGE_MAP()</p>
<p>und noch ne funk angelegt:<br />
void CFile_RenamerDlg::OnDropFiles(HDROP hDropInfo)<br />
{<br />
MessageBox(&quot;test&quot;);</p>
<p>UINT i = 0;<br />
UINT nFiles = ::DragQueryFile(hDropInfo, (UINT) -1, NULL, 0);<br />
for (i = 0; i &lt; nFiles; i++)<br />
{<br />
TCHAR szFileName[_MAX_PATH];<br />
::DragQueryFile(hDropInfo, i, szFileName, _MAX_PATH);</p>
<p>MessageBox(szFileName);<br />
}</p>
<p>::DragFinish(hDropInfo);<br />
CFile_RenamerDlg::OnDropFiles(hDropInfo);<br />
}</p>
]]></description><link>https://www.c-plusplus.net/forum/post/455827</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/455827</guid><dc:creator><![CDATA[T1c4L]]></dc:creator><pubDate>Tue, 10 Feb 2004 09:52:51 GMT</pubDate></item><item><title><![CDATA[Reply to wie mappe ich eine MSG von hand ohne den Class Wizard zu nutzen kann mir dajemand helfen bitte? on Tue, 10 Feb 2004 10:08:15 GMT]]></title><description><![CDATA[<p>Und wo ist die Fehlermeldung?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/455850</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/455850</guid><dc:creator><![CDATA[estartu]]></dc:creator><pubDate>Tue, 10 Feb 2004 10:08:15 GMT</pubDate></item><item><title><![CDATA[Reply to wie mappe ich eine MSG von hand ohne den Class Wizard zu nutzen kann mir dajemand helfen bitte? on Tue, 10 Feb 2004 10:11:06 GMT]]></title><description><![CDATA[<p>beim anwenden reagiert die OnDropFiles funktion nicht,</p>
<p>mit TRACE bekomm ich auch nix, glaube mein prog ruf die OnDrop gar nicht auf....</p>
]]></description><link>https://www.c-plusplus.net/forum/post/455857</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/455857</guid><dc:creator><![CDATA[T1c4L]]></dc:creator><pubDate>Tue, 10 Feb 2004 10:11:06 GMT</pubDate></item><item><title><![CDATA[Reply to wie mappe ich eine MSG von hand ohne den Class Wizard zu nutzen kann mir dajemand helfen bitte? on Tue, 10 Feb 2004 10:16:27 GMT]]></title><description><![CDATA[<p>Ich glaube du hast das hier vergessen: DragAcceptFiles</p>
]]></description><link>https://www.c-plusplus.net/forum/post/455866</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/455866</guid><dc:creator><![CDATA[estartu]]></dc:creator><pubDate>Tue, 10 Feb 2004 10:16:27 GMT</pubDate></item><item><title><![CDATA[Reply to wie mappe ich eine MSG von hand ohne den Class Wizard zu nutzen kann mir dajemand helfen bitte? on Tue, 10 Feb 2004 10:24:07 GMT]]></title><description><![CDATA[<p>m_MyFileCtrl.DragAcceptFiles(true);</p>
<p>das habe ich auch..... dadurch verändert sich schonmal mein cursor....wenn ich mit einer datei über die liste fahre....</p>
]]></description><link>https://www.c-plusplus.net/forum/post/455870</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/455870</guid><dc:creator><![CDATA[T1c4L]]></dc:creator><pubDate>Tue, 10 Feb 2004 10:24:07 GMT</pubDate></item><item><title><![CDATA[Reply to wie mappe ich eine MSG von hand ohne den Class Wizard zu nutzen kann mir dajemand helfen bitte? on Tue, 10 Feb 2004 10:36:14 GMT]]></title><description><![CDATA[<p>Hmm, dann fällt mir noch DragOver ein, das konnte man festlegen, ob man fallenlassen darf oder nicht. Ist damit was zu gewinnen?</p>
<p>Sorry, aber ich hab blos mal beim Einbau von sowas zuschaut, bin also nicht so firm. <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f61e.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--disappointed_face"
      title=":("
      alt="😞"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/post/455882</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/455882</guid><dc:creator><![CDATA[estartu]]></dc:creator><pubDate>Tue, 10 Feb 2004 10:36:14 GMT</pubDate></item></channel></rss>