<?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[Nachricht Funktion]]></title><description><![CDATA[<p>Bin von Visual c++ 6 auf .net umgestiegen.<br />
Früher ging das mit dem Klassenassistenten.<br />
Wie füge ich ner Nachricht z.b. WM_TIMER ne Funktion zu. In meiner Manual steht nur dass ich das tun soll. Hab aber keinen Schimmer wie und hab bis jetzt auch noch nix gefunden.</p>
<p>Danke</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/77327/nachricht-funktion</link><generator>RSS for Node</generator><lastBuildDate>Fri, 24 Apr 2026 09:49:15 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/77327.rss" rel="self" type="application/rss+xml"/><pubDate>Sun, 20 Jun 2004 08:51:05 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Nachricht Funktion on Sun, 20 Jun 2004 08:51:05 GMT]]></title><description><![CDATA[<p>Bin von Visual c++ 6 auf .net umgestiegen.<br />
Früher ging das mit dem Klassenassistenten.<br />
Wie füge ich ner Nachricht z.b. WM_TIMER ne Funktion zu. In meiner Manual steht nur dass ich das tun soll. Hab aber keinen Schimmer wie und hab bis jetzt auch noch nix gefunden.</p>
<p>Danke</p>
]]></description><link>https://www.c-plusplus.net/forum/post/544060</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/544060</guid><dc:creator><![CDATA[ConquwererD]]></dc:creator><pubDate>Sun, 20 Jun 2004 08:51:05 GMT</pubDate></item><item><title><![CDATA[Reply to Nachricht Funktion on Sun, 20 Jun 2004 09:32:48 GMT]]></title><description><![CDATA[<p>Die CWnd klassen haben Funktionen: SetTimer() und OnTimer(). Das WM_TIMER Ereignis ist automatisch processiert in dem DispatchMessage Fensterfunktion. Du brauchst nur den Timer zu starten, die OnTimer() zu überladen und das ON_WM_TIMER() Makro in die MESSAGE_MAP zu stecken.</p>
<p>Hier ist ein Sample aus der MSDN:</p>
<pre><code class="language-cpp">BEGIN_MESSAGE_MAP(CMainFrame, CFrameWnd)
	ON_WM_CREATE()
// Ein Ereignis der mit der Star Timer Knopf im
// Menü ausgelöst wird
	ON_COMMAND(ID_VIEW_STARTTIMER, OnStartTimer)
	ON_WM_TIMER()
END_MESSAGE_MAP()

void CMainFrame::OnStartTimer() 
{
   m_nTimer = SetTimer(1, 2000, 0);
}

void CMainFrame::OnStopTimer() 
{
   KillTimer(m_nTimer);   
}

void CMainFrame::OnTimer(UINT nIDEvent) 
{
   MessageBox(&quot;something&quot;,&quot;something&quot;);  // Indicate the timer event

   // Call base class handler.
   CFrameWnd::OnTimer(nIDEvent);
}
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/544076</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/544076</guid><dc:creator><![CDATA[Squeel]]></dc:creator><pubDate>Sun, 20 Jun 2004 09:32:48 GMT</pubDate></item><item><title><![CDATA[Reply to Nachricht Funktion on Sun, 20 Jun 2004 09:53:17 GMT]]></title><description><![CDATA[<p>Sorry ich bin grad erst so richtig angefangen und versteh eigentlich so ziemlich garnichts von dem was du sagst <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f615.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--confused_face"
      title=":confused:"
      alt="😕"
    /><br />
Dann stell ich das mal anders wie bekomme ich dieses</p>
<pre><code class="language-cpp">void CMainFrame::OnTimer(UINT nIDEvent) 
{
   MessageBox(&quot;something&quot;,&quot;something&quot;);  // Indicate the timer event

   // Call base class handler.
   CFrameWnd::OnTimer(nIDEvent);
}
</code></pre>
<p>hin. Also wie bekomme ich diese OnTimer Funktion da rein muss ich die selber reinschreiben normaler weise bekomme ich ja<br />
void CMainFrame::OnTimer(UINT nIDEvent) schon vorgegeben und muss danach nur noch die Aktion eingeben.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/544090</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/544090</guid><dc:creator><![CDATA[ConquwererD]]></dc:creator><pubDate>Sun, 20 Jun 2004 09:53:17 GMT</pubDate></item><item><title><![CDATA[Reply to Nachricht Funktion on Sun, 20 Jun 2004 10:22:17 GMT]]></title><description><![CDATA[<p>OK Hat sich erledigt Hab in nem anderen Beitrag schon die Lösung gefunden. Aber danke nochmal.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/544104</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/544104</guid><dc:creator><![CDATA[ConquwererD]]></dc:creator><pubDate>Sun, 20 Jun 2004 10:22:17 GMT</pubDate></item></channel></rss>