<?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[problem mit OnTimer WM_Time]]></title><description><![CDATA[<p>hallo zusammen,<br />
ich habe ein SDI anwendung, die eine listView ständig mit Daten aus eine tabelle ausfüllt(zeitintervall).und jetzt habe ich diese SDI anwendung zu eine MDI um gewandelt, und alle funktionen funktionieren einwandfrei bis auf die funktion mit update von der listen view wird nicht augefürt.d.h wenn der anwendung startet,wird die liste ausgefüllt.aber während die laufzeit der anwendung, wird die anwendung nicht die list view nicht neue geladen. und dass ist zeit gesteurt(::OnTimer).</p>
<pre><code>int CMainFrame::OnCreate(LPCREATESTRUCT lpCreateStruct)
{
.........
if (m_nTimer == 0)
	{
		m_nTimer = SetTimer(2121, 10000, NULL);
		if (m_nTimer == 0)
		{
			AfxMessageBox(&quot;Kein neuer Timer verfügbar!!!&quot;, MB_ICONSTOP);
		}
	}

	return 0;
}
</code></pre>
<pre><code>void CMainFrame::OnTimer(UINT nIDEvent)
{
    if (nIDEvent == m_nTimer)
	{
	CDfmUIView *pView = (CDfmUIView *) CMainFrame::GetActiveView();
	if (pView != NULL)
	{
	pView-&gt;[b]FillListView()[/b];[b]// funktion die die Liste ausfüllt[/b]
	}
	}

	CMDIFrameWnd::OnTimer(nIDEvent);
}
</code></pre>
<p>und als die anwendung noch SDI war hat alles ein wandfrei gelaufen.<br />
solle ich die OnTimer in CChildWnd oder in mein View klasse schreiben oder habt ihr einandere idee. <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="😕"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/topic/181582/problem-mit-ontimer-wm_time</link><generator>RSS for Node</generator><lastBuildDate>Fri, 17 Apr 2026 19:43:52 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/181582.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 15 May 2007 11:18:01 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to problem mit OnTimer WM_Time on Tue, 15 May 2007 11:18:01 GMT]]></title><description><![CDATA[<p>hallo zusammen,<br />
ich habe ein SDI anwendung, die eine listView ständig mit Daten aus eine tabelle ausfüllt(zeitintervall).und jetzt habe ich diese SDI anwendung zu eine MDI um gewandelt, und alle funktionen funktionieren einwandfrei bis auf die funktion mit update von der listen view wird nicht augefürt.d.h wenn der anwendung startet,wird die liste ausgefüllt.aber während die laufzeit der anwendung, wird die anwendung nicht die list view nicht neue geladen. und dass ist zeit gesteurt(::OnTimer).</p>
<pre><code>int CMainFrame::OnCreate(LPCREATESTRUCT lpCreateStruct)
{
.........
if (m_nTimer == 0)
	{
		m_nTimer = SetTimer(2121, 10000, NULL);
		if (m_nTimer == 0)
		{
			AfxMessageBox(&quot;Kein neuer Timer verfügbar!!!&quot;, MB_ICONSTOP);
		}
	}

	return 0;
}
</code></pre>
<pre><code>void CMainFrame::OnTimer(UINT nIDEvent)
{
    if (nIDEvent == m_nTimer)
	{
	CDfmUIView *pView = (CDfmUIView *) CMainFrame::GetActiveView();
	if (pView != NULL)
	{
	pView-&gt;[b]FillListView()[/b];[b]// funktion die die Liste ausfüllt[/b]
	}
	}

	CMDIFrameWnd::OnTimer(nIDEvent);
}
</code></pre>
<p>und als die anwendung noch SDI war hat alles ein wandfrei gelaufen.<br />
solle ich die OnTimer in CChildWnd oder in mein View klasse schreiben oder habt ihr einandere idee. <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="😕"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/post/1285299</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1285299</guid><dc:creator><![CDATA[sizon]]></dc:creator><pubDate>Tue, 15 May 2007 11:18:01 GMT</pubDate></item><item><title><![CDATA[Reply to problem mit OnTimer WM_Time on Wed, 16 May 2007 10:09:42 GMT]]></title><description><![CDATA[<p>Schon mal daran gedacht das GetActiveView evtl. NULL liefert?</p>
<p>Warum platzierst Du den Timer den nicht direkt in den View?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1286021</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1286021</guid><dc:creator><![CDATA[Martin Richter]]></dc:creator><pubDate>Wed, 16 May 2007 10:09:42 GMT</pubDate></item><item><title><![CDATA[Reply to problem mit OnTimer WM_Time on Wed, 16 May 2007 10:17:47 GMT]]></title><description><![CDATA[<p>danke ich habe es schon in CChildframe plaziert und hat geklappt, Danke sehr <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/1286030</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1286030</guid><dc:creator><![CDATA[sizon]]></dc:creator><pubDate>Wed, 16 May 2007 10:17:47 GMT</pubDate></item><item><title><![CDATA[Reply to problem mit OnTimer WM_Time on Wed, 16 May 2007 11:16:51 GMT]]></title><description><![CDATA[<p>Und warum im Frame überhaupt. Es geht doch um die aten des Views. Warum dezentral und dann auch noch mit den casts?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1286072</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1286072</guid><dc:creator><![CDATA[Martin Richter]]></dc:creator><pubDate>Wed, 16 May 2007 11:16:51 GMT</pubDate></item></channel></rss>