<?xml version='1.0' encoding="utf-8"?>
      <rss version='2.0'>
      <channel>
      <title>Форум на Исходниках.RU</title>
      <link>https://forum.sources.ru</link>
      <description>Форум на Исходниках.RU</description>
      <generator>Форум на Исходниках.RU</generator>
  	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=104866&amp;view=findpost&amp;p=796269</guid>
        <pubDate>Sat, 03 Mar 2001 05:40:00 +0000</pubDate>
        <title>MFS &amp; Timer</title>
        <link>https://forum.sources.ru/index.php?showtopic=104866&amp;view=findpost&amp;p=796269</link>
        <description><![CDATA[deil: блин, спасибо люди - выручили :)<br>возьмите по пирожку с полочки! :-]]]></description>
        <author>deil</author>
        <category>C/C++: Прочее</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=104866&amp;view=findpost&amp;p=796268</guid>
        <pubDate>Fri, 02 Mar 2001 22:01:00 +0000</pubDate>
        <title>MFS &amp; Timer</title>
        <link>https://forum.sources.ru/index.php?showtopic=104866&amp;view=findpost&amp;p=796268</link>
        <description><![CDATA[Elephant: Посмотри на функцию SetTimer. Первый аргумент - ID таймера. В обработчике OnTimer добавь проверку на то, какой таймер активизировался и делай, то что тебе надо!]]></description>
        <author>Elephant</author>
        <category>C/C++: Прочее</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=104866&amp;view=findpost&amp;p=796267</guid>
        <pubDate>Fri, 02 Mar 2001 19:50:00 +0000</pubDate>
        <title>MFS &amp; Timer</title>
        <link>https://forum.sources.ru/index.php?showtopic=104866&amp;view=findpost&amp;p=796267</link>
        <description><![CDATA[deil: хех. клёво \%)<br>а таким макаром ещё пару таймеров сделать низзя? :)))]]></description>
        <author>deil</author>
        <category>C/C++: Прочее</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=104866&amp;view=findpost&amp;p=796266</guid>
        <pubDate>Fri, 02 Mar 2001 17:40:00 +0000</pubDate>
        <title>MFS &amp; Timer</title>
        <link>https://forum.sources.ru/index.php?showtopic=104866&amp;view=findpost&amp;p=796266</link>
        <description><![CDATA[purpe: элементарно Ватсон :)<br>функция уничтожения окна:<br>void CMainWnd::OnDestroy()<br>{<br> CWnd::OnDestroy();<br> if(m_uTimer) KillTimer(m_uTimer);<br>}]]></description>
        <author>purpe</author>
        <category>C/C++: Прочее</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=104866&amp;view=findpost&amp;p=796265</guid>
        <pubDate>Fri, 02 Mar 2001 16:51:00 +0000</pubDate>
        <title>MFS &amp; Timer</title>
        <link>https://forum.sources.ru/index.php?showtopic=104866&amp;view=findpost&amp;p=796265</link>
        <description><![CDATA[deil: хех, спасибо :)<br>а как этот таймер прибить? :)))]]></description>
        <author>deil</author>
        <category>C/C++: Прочее</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=104866&amp;view=findpost&amp;p=796264</guid>
        <pubDate>Thu, 01 Mar 2001 21:01:00 +0000</pubDate>
        <title>MFS &amp; Timer</title>
        <link>https://forum.sources.ru/index.php?showtopic=104866&amp;view=findpost&amp;p=796264</link>
        <description><![CDATA[purpe: я делал примерно так:<br>объявляю в классе следующие переменные и функции:<br>class CMainWnd : public CWnd<br>{<br> .......<br>public:<br> CTime m_timeStarted;<br> UINT m_uTimer;<br> .......<br>protected:<br> //{{AFX_MSG(CMainWnd)<br> afx_msg void OnTimer(UINT nIDEvent);<br> .....<br>}<br>далее в обработчике OnCreate запускаю таймер:<br>int CMainWnd::OnCreate(LPCREATESTRUCT lpCreateStruct) <br>{<br> if (CWnd::OnCreate(lpCreateStruct) == -1)<br>		return -1;<br> m_uTimer = SetTimer(1, 30000, NULL);<br> .......<br>}<br>цифра 30000 означает, что таймер будет генерировать сообщения с интервалом в 30 секунд.<br>После этого создаю обработчик OnTimer:<br>void CMainWnd::OnTimer(UINT nIDEvent) <br>{<br> //здесь функция, которая будет вызываться каждые 30 секунд <br> CWnd::OnTimer(nIDEvent);<br>}<br>и надо не забыть добавить:<br>BEGIN_MESSAGE_MAP(CMainWnd, CWnd)<br> //{{AFX_MSG_MAP(CMainWnd)<br> .....<br> ON_WM_TIMER()<br> .....<br> //}}AFX_MSG_MAP<br>END_MESSAGE_MAP()<br>вроде должно работать :)]]></description>
        <author>purpe</author>
        <category>C/C++: Прочее</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=104866&amp;view=findpost&amp;p=796263</guid>
        <pubDate>Thu, 01 Mar 2001 17:39:00 +0000</pubDate>
        <title>MFS &amp; Timer</title>
        <link>https://forum.sources.ru/index.php?showtopic=104866&amp;view=findpost&amp;p=796263</link>
        <description><![CDATA[deil: люди, есть ли в МФЦ аналог TTimer из Дэльфи?<br>(в VB точно есть, сам знаю)<br>если нет, то как его можно сделать? :)]]></description>
        <author>deil</author>
        <category>C/C++: Прочее</category>
      </item>
	
      </channel>
      </rss>
	