<?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=23259&amp;view=findpost&amp;p=170670</guid>
        <pubDate>Sun, 27 Apr 2003 15:49:16 +0000</pubDate>
        <title>WM_CLOSE</title>
        <link>https://forum.sources.ru/index.php?showtopic=23259&amp;view=findpost&amp;p=170670</link>
        <description><![CDATA[x2er0: <div class='tag-code'><span class='pre_code'></span><div class='code  code_collapsed ' title='Подсветка синтаксиса доступна зарегистрированным участникам Форума.' style=''><div><div><ol type="1"><div class="code_line">&#60;br&#62;function WndProc(hWn:Thandle;mMsg,wParam,lParam:integer):integer; stdcall;&#60;br&#62;begin&#60;br&#62;&#60;br&#62;   Case mMsg of&#60;br&#62;&#60;br&#62;     WM_DESTROY:begin&#60;br&#62;                           halt(0);&#60;br&#62;                           //вот это событие&#60;br&#62;                         end;&#60;br&#62;     WM_TIMER:UnderCur;&#60;br&#62;&#60;br&#62;   end;&#60;br&#62;&#60;br&#62; result:=DefWindowProc(hWn,mMsg,wParam,lParam);&#60;br&#62;&#60;br&#62;end;&#60;br&#62;begin&#60;br&#62;&#60;br&#62; with WClass do&#60;br&#62;  begin&#60;br&#62;   lpfnWndProc:=@WndProc;&#60;br&#62;   hInstance:=hInstance;&#60;br&#62;   hIcon:=LoadIcon(0,IDI_hand);&#60;br&#62;   hCursor:=LoadCursor(0,IDC_ARROW);&#60;br&#62;   hbrBackground:=color_menu+9;&#60;br&#62;   lpszClassName:=&#39;My&#39;;&#60;br&#62;   style:=CS_HREDRAW or CS_VREDRAW;&#60;br&#62;  end;&#60;br&#62;&#60;br&#62;RegisterClass(WClass);&#60;br&#62;  hWnd:=CreateWindow(&#39;My&#39;,&#39;&#39;,WS_OVERLAPPEDWINDOW,100,100,300,150,0,0,hInstance,nil);&#60;br&#62;&#60;br&#62;ShowWindow(hWnd,SW_Normal);&#60;br&#62;  UpdateWindow(hWnd);&#60;br&#62;&#60;br&#62;  SetTimer(hWnd,1,100,nil);&#60;br&#62;&#60;br&#62; while GetMessage(mMsg, hWnd , 0, 0) do&#60;br&#62;  begin&#60;br&#62;   TranslateMessage(mMsg);&#60;br&#62;   DispatchMessage(mMsg);&#60;br&#62;  end;&#60;br&#62;</div></ol></div></div></div></div><script>preloadCodeButtons('1');</script>]]></description>
        <author>x2er0</author>
        <category>C/C++: Системное программирование и WinAPI</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=23259&amp;view=findpost&amp;p=170669</guid>
        <pubDate>Sun, 27 Apr 2003 14:24:48 +0000</pubDate>
        <title>WM_CLOSE</title>
        <link>https://forum.sources.ru/index.php?showtopic=23259&amp;view=findpost&amp;p=170669</link>
        <description><![CDATA[Serial: program Project1;<br><br>uses<br>  Windows;<br><br>{$R *.RES}<br><br>begin<br> while True do<br> begin<br>  GetMessage(Msg, 0, 0, 0);<br>  DispatchMessage(Msg);<br> end;<br>end.<br>// Главная задача, которую надо достичь:<br>//Надо чтобы программа постоянно проверяла, если ее пытаются закрыть,<br>//чтоб выдавала сообщение &quot;Меня закрывают&quot; и закрывалась!]]></description>
        <author>Serial</author>
        <category>C/C++: Системное программирование и WinAPI</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=23259&amp;view=findpost&amp;p=170668</guid>
        <pubDate>Sat, 26 Apr 2003 15:38:11 +0000</pubDate>
        <title>WM_CLOSE</title>
        <link>https://forum.sources.ru/index.php?showtopic=23259&amp;view=findpost&amp;p=170668</link>
        <description><![CDATA[x2er0: Понимаешь то, что у тебя .dpr это еще ни очем не говорит, т.к. консоль и в нем можно делать...<br>А если ты оформляешь создание окна на чистом апи, то ведь обработчик то полюбой есть!!!!<br>Короче - покажи хоть кусочик кода!!! Не мучай нас =)<br>]]></description>
        <author>x2er0</author>
        <category>C/C++: Системное программирование и WinAPI</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=23259&amp;view=findpost&amp;p=170667</guid>
        <pubDate>Sat, 26 Apr 2003 09:34:59 +0000</pubDate>
        <title>WM_CLOSE</title>
        <link>https://forum.sources.ru/index.php?showtopic=23259&amp;view=findpost&amp;p=170667</link>
        <description><![CDATA[Song: Сообщения передаются только окнам. Отсюда вывод - нужно создать окно.]]></description>
        <author>Song</author>
        <category>C/C++: Системное программирование и WinAPI</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=23259&amp;view=findpost&amp;p=170666</guid>
        <pubDate>Sat, 26 Apr 2003 06:23:17 +0000</pubDate>
        <title>WM_CLOSE</title>
        <link>https://forum.sources.ru/index.php?showtopic=23259&amp;view=findpost&amp;p=170666</link>
        <description><![CDATA[Serial: У меня только &quot;.dpr&quot; !! окон не создаю!!<br>Forms, SysUtils не использую! Чистый WinAPI !!]]></description>
        <author>Serial</author>
        <category>C/C++: Системное программирование и WinAPI</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=23259&amp;view=findpost&amp;p=170665</guid>
        <pubDate>Fri, 25 Apr 2003 19:42:17 +0000</pubDate>
        <title>WM_CLOSE</title>
        <link>https://forum.sources.ru/index.php?showtopic=23259&amp;view=findpost&amp;p=170665</link>
        <description><![CDATA[x2er0: Ты может объяснишь хоть - у тебя есть оконный обработчик или консоль лепишь? А то может мы на разные темы говорим?!]]></description>
        <author>x2er0</author>
        <category>C/C++: Системное программирование и WinAPI</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=23259&amp;view=findpost&amp;p=170664</guid>
        <pubDate>Fri, 25 Apr 2003 18:11:33 +0000</pubDate>
        <title>WM_CLOSE</title>
        <link>https://forum.sources.ru/index.php?showtopic=23259&amp;view=findpost&amp;p=170664</link>
        <description><![CDATA[Serial: Thanks 2 Was!<br>Но все-таки мне не очень понятно! Не мог бы кто-нибудь поделиться исходниками??<br>Надо чтобы программа постоянно проверяла, если ее пытаются закрыть чтоб выдавала сообщение &quot;Меня закрывают&quot; и закрывалась!<br>Жду помощи.....]]></description>
        <author>Serial</author>
        <category>C/C++: Системное программирование и WinAPI</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=23259&amp;view=findpost&amp;p=170663</guid>
        <pubDate>Fri, 25 Apr 2003 14:37:41 +0000</pubDate>
        <title>WM_CLOSE</title>
        <link>https://forum.sources.ru/index.php?showtopic=23259&amp;view=findpost&amp;p=170663</link>
        <description><![CDATA[Was: FWindowHandle := AllocateHWnd(WndProc);<br><br><br>procedure TC......WndProc(var Msg: TMessage);<br>begin<br> &nbsp;with Msg do<br> &nbsp; &nbsp;if Msg = &nbsp;WM_CLOSE then ....... <br> &nbsp; &nbsp;else<br> &nbsp; &nbsp; &nbsp;DefWindowProc(FWindowHandle, Msg, wParam, lParam);<br> &nbsp; &nbsp;end;<br>end;<br>]]></description>
        <author>Was</author>
        <category>C/C++: Системное программирование и WinAPI</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=23259&amp;view=findpost&amp;p=170662</guid>
        <pubDate>Fri, 25 Apr 2003 12:39:53 +0000</pubDate>
        <title>WM_CLOSE</title>
        <link>https://forum.sources.ru/index.php?showtopic=23259&amp;view=findpost&amp;p=170662</link>
        <description><![CDATA[Song: WndProc]]></description>
        <author>Song</author>
        <category>C/C++: Системное программирование и WinAPI</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=23259&amp;view=findpost&amp;p=170661</guid>
        <pubDate>Fri, 25 Apr 2003 12:16:27 +0000</pubDate>
        <title>WM_CLOSE</title>
        <link>https://forum.sources.ru/index.php?showtopic=23259&amp;view=findpost&amp;p=170661</link>
        <description><![CDATA[x2er0: Вероятно все делао на апи, тогда ведь все равно оконный обработчик то есть, вот в нем и лови любое сообщение!]]></description>
        <author>x2er0</author>
        <category>C/C++: Системное программирование и WinAPI</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=23259&amp;view=findpost&amp;p=170660</guid>
        <pubDate>Fri, 25 Apr 2003 12:09:45 +0000</pubDate>
        <title>WM_CLOSE</title>
        <link>https://forum.sources.ru/index.php?showtopic=23259&amp;view=findpost&amp;p=170660</link>
        <description><![CDATA[Serial: А где взять hwnd или handle ?? (если нету форм)]]></description>
        <author>Serial</author>
        <category>C/C++: Системное программирование и WinAPI</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=23259&amp;view=findpost&amp;p=170659</guid>
        <pubDate>Fri, 25 Apr 2003 12:00:11 +0000</pubDate>
        <title>WM_CLOSE</title>
        <link>https://forum.sources.ru/index.php?showtopic=23259&amp;view=findpost&amp;p=170659</link>
        <description><![CDATA[Was: AllocateHWnd()<br>DeAllocateHWnd()]]></description>
        <author>Was</author>
        <category>C/C++: Системное программирование и WinAPI</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=23259&amp;view=findpost&amp;p=170658</guid>
        <pubDate>Fri, 25 Apr 2003 11:30:54 +0000</pubDate>
        <title>WM_CLOSE</title>
        <link>https://forum.sources.ru/index.php?showtopic=23259&amp;view=findpost&amp;p=170658</link>
        <description><![CDATA[Serial: Подскажите как отлавливать сообщение WM_CLOSE ??<br>А точнее как узнать что твое приложение закрывают, если не используеш форм ??]]></description>
        <author>Serial</author>
        <category>C/C++: Системное программирование и WinAPI</category>
      </item>
	
      </channel>
      </rss>
	