<?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=166373&amp;view=findpost&amp;p=1396790</guid>
        <pubDate>Sun, 31 Dec 2006 02:56:23 +0000</pubDate>
        <title>Создание текстового редактора</title>
        <link>https://forum.sources.ru/index.php?showtopic=166373&amp;view=findpost&amp;p=1396790</link>
        <description><![CDATA[B.V.: <div class='tag-quote'><a class='tag-quote-link' href='https://forum.sources.ru/index.php?showtopic=166373&view=findpost&p=1396686'><span class='tag-quote-prefix'>Цитата</span></a> <span class='tag-quote__quote-info'>ElcnU &#064; <time class="tag-quote__quoted-time" datetime="2006-12-30T21:35:24+03:00">30.12.06, 18:35</time></span><div class='quote '>зачем в папку проекта запихал windows.h и ещё чёто...?</div></div><br>
<br>
Собирал второпях, не посмотрел чего там среда накидала :) <br>
<br>
С Новым Годом&#33; :yes:]]></description>
        <author>B.V.</author>
        <category>Visual C++ / MFC / WTL</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=166373&amp;view=findpost&amp;p=1396686</guid>
        <pubDate>Sat, 30 Dec 2006 18:35:24 +0000</pubDate>
        <title>Создание текстового редактора</title>
        <link>https://forum.sources.ru/index.php?showtopic=166373&amp;view=findpost&amp;p=1396686</link>
        <description><![CDATA[ElcnU: Да там просто надо было #include &quot;windows.h&quot; на #include &lt;windows.h&gt;<br>
<strong class='tag-b'>B.V.</strong>,зачем в папку проекта запихал windows.h и ещё чёто...? качается долго(GPRS) :D <br>
ну ладно...С Новым Годом&#33;&#33;&#33; ;)]]></description>
        <author>ElcnU</author>
        <category>Visual C++ / MFC / WTL</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=166373&amp;view=findpost&amp;p=1396471</guid>
        <pubDate>Sat, 30 Dec 2006 13:33:20 +0000</pubDate>
        <title>Создание текстового редактора</title>
        <link>https://forum.sources.ru/index.php?showtopic=166373&amp;view=findpost&amp;p=1396471</link>
        <description><![CDATA[Zayka: СПАСИБО, СПАСИБО, СПАСИБО&#33; :D  Кстати, всех с наступающим&#33; Счастья, любви и удачи в Новом году&#33; Ж)]]></description>
        <author>Zayka</author>
        <category>Visual C++ / MFC / WTL</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=166373&amp;view=findpost&amp;p=1396467</guid>
        <pubDate>Sat, 30 Dec 2006 13:29:58 +0000</pubDate>
        <title>Создание текстового редактора</title>
        <link>https://forum.sources.ru/index.php?showtopic=166373&amp;view=findpost&amp;p=1396467</link>
        <description><![CDATA[B.V.: Нды...<br><br>Вот:]]></description>
        <author>B.V.</author>
        <category>Visual C++ / MFC / WTL</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=166373&amp;view=findpost&amp;p=1396436</guid>
        <pubDate>Sat, 30 Dec 2006 12:45:30 +0000</pubDate>
        <title>Создание текстового редактора</title>
        <link>https://forum.sources.ru/index.php?showtopic=166373&amp;view=findpost&amp;p=1396436</link>
        <description><![CDATA[Zayka: ВОТ&#33; <br>
<br>
<span class="tag-color tag-color-named" data-value="gray" style="color: gray"><span class='tag-size' data-value='7' style='font-size:7pt;'>Добавлено <time class="tag-mergetime" datetime="2006-12-30T12:59:22+00:00">30.12.06, 12:59</time></span></span><br>
Даже так не хочет работать&#33; :wall: <br>
<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">hFont=CreateFont(-MulDiv(12, GetDeviceCaps(GetDC(0), LOGPIXELSY), 72)</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;,0,0,0,FW_NORMAL,FALSE,FALSE,0,ANSI_CHARSET,</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;OUT_DEFAULT_PRECIS,CLIP_DEFAULT_PRECIS,DEFAULT_QUALITY,</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;DEFAULT_PITCH | FF_SWISS,&quot;Arial&quot;);</div></ol></div></div></div></div><script>preloadCodeButtons('1');</script>]]></description>
        <author>Zayka</author>
        <category>Visual C++ / MFC / WTL</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=166373&amp;view=findpost&amp;p=1396432</guid>
        <pubDate>Sat, 30 Dec 2006 12:37:07 +0000</pubDate>
        <title>Создание текстового редактора</title>
        <link>https://forum.sources.ru/index.php?showtopic=166373&amp;view=findpost&amp;p=1396432</link>
        <description><![CDATA[ElcnU: <div class='tag-quote'><span class='tag-quote-prefix'>Цитата</span> <span class='tag-quote__quote-info'>B.V., 30.12.2006, 14:32:48, 1396430</span><div class='quote '>А надо так:</div></div><br>
а разница? что у тя что у меня всё равно ариал :whistle: <br>
а свой код я из MSDN взял :yes:]]></description>
        <author>ElcnU</author>
        <category>Visual C++ / MFC / WTL</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=166373&amp;view=findpost&amp;p=1396430</guid>
        <pubDate>Sat, 30 Dec 2006 12:32:48 +0000</pubDate>
        <title>Создание текстового редактора</title>
        <link>https://forum.sources.ru/index.php?showtopic=166373&amp;view=findpost&amp;p=1396430</link>
        <description><![CDATA[B.V.: <div class='tag-quote'><a class='tag-quote-link' href='https://forum.sources.ru/index.php?showtopic=166373&view=findpost&p=1395487'><span class='tag-quote-prefix'>Цитата</span></a> <span class='tag-quote__quote-info'>ElcnU &#064; <time class="tag-quote__quoted-time" datetime="2006-12-29T09:05:29+00:00">29.12.06, 09:05</time></span><div class='quote '>            hFont=::CreateFont(12,0,0,0,FW_NORMAL,FALSE,FALSE,0,ANSI_CHARSET,<br>
                OUT_DEFAULT_PRECIS,CLIP_DEFAULT_PRECIS,DEFAULT_QUALITY,<br>
                DEFAULT_PITCH | FF_SWISS,&quot;Arial&quot;);</div></div><br>
<br>
А надо так:<br>
<br>
<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">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;hFont=CreateFont(-MulDiv(12, GetDeviceCaps(GetDC(0), LOGPIXELSY), 72)</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;,0,0,0,FW_NORMAL,FALSE,FALSE,0,ANSI_CHARSET,</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;OUT_DEFAULT_PRECIS,CLIP_DEFAULT_PRECIS,DEFAULT_QUALITY,</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;DEFAULT_PITCH | FF_SWISS,&quot;Arial&quot;);</div></ol></div></div></div></div>]]></description>
        <author>B.V.</author>
        <category>Visual C++ / MFC / WTL</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=166373&amp;view=findpost&amp;p=1396429</guid>
        <pubDate>Sat, 30 Dec 2006 12:32:13 +0000</pubDate>
        <title>Создание текстового редактора</title>
        <link>https://forum.sources.ru/index.php?showtopic=166373&amp;view=findpost&amp;p=1396429</link>
        <description><![CDATA[ElcnU: нажми ответить а остальное <a class='tag-url' href='http://forum.sources.ru/index.php?showtopic=166096&view=findpost&p=1392556' target='_blank'>тут</a> объяснял :yes:]]></description>
        <author>ElcnU</author>
        <category>Visual C++ / MFC / WTL</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=166373&amp;view=findpost&amp;p=1396426</guid>
        <pubDate>Sat, 30 Dec 2006 12:30:32 +0000</pubDate>
        <title>Создание текстового редактора</title>
        <link>https://forum.sources.ru/index.php?showtopic=166373&amp;view=findpost&amp;p=1396426</link>
        <description><![CDATA[Zayka: Подскажи как&#33; Че та у меня не получается&#33; :(]]></description>
        <author>Zayka</author>
        <category>Visual C++ / MFC / WTL</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=166373&amp;view=findpost&amp;p=1396417</guid>
        <pubDate>Sat, 30 Dec 2006 12:21:23 +0000</pubDate>
        <title>Создание текстового редактора</title>
        <link>https://forum.sources.ru/index.php?showtopic=166373&amp;view=findpost&amp;p=1396417</link>
        <description><![CDATA[ElcnU: правильно. выложи свой свой проект. я посмотрю]]></description>
        <author>ElcnU</author>
        <category>Visual C++ / MFC / WTL</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=166373&amp;view=findpost&amp;p=1396416</guid>
        <pubDate>Sat, 30 Dec 2006 12:20:24 +0000</pubDate>
        <title>Создание текстового редактора</title>
        <link>https://forum.sources.ru/index.php?showtopic=166373&amp;view=findpost&amp;p=1396416</link>
        <description><![CDATA[Zayka: Почему то не хочет работать&#33; :( <br>В свойствах поставила переключатель в Not Using Precompiled Headers<br>А в полях Create/Use Precompiled Header прописала Not Using Precompiled Headers&#33;<br>Правильно?]]></description>
        <author>Zayka</author>
        <category>Visual C++ / MFC / WTL</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=166373&amp;view=findpost&amp;p=1396403</guid>
        <pubDate>Sat, 30 Dec 2006 12:02:39 +0000</pubDate>
        <title>Создание текстового редактора</title>
        <link>https://forum.sources.ru/index.php?showtopic=166373&amp;view=findpost&amp;p=1396403</link>
        <description><![CDATA[ElcnU: зайди в свойстава проекта-&gt;<br>
<div class='tag-quote'><span class='tag-quote-prefix'>Цитата</span> <div class='quote '>С/С++-&gt;Precompiled Headers-&gt;Create/Use Precompiled Header-&gt;Not Using Precompiled Headers</div></div>]]></description>
        <author>ElcnU</author>
        <category>Visual C++ / MFC / WTL</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=166373&amp;view=findpost&amp;p=1396390</guid>
        <pubDate>Sat, 30 Dec 2006 11:29:35 +0000</pubDate>
        <title>Создание текстового редактора</title>
        <link>https://forum.sources.ru/index.php?showtopic=166373&amp;view=findpost&amp;p=1396390</link>
        <description><![CDATA[Zayka: Спасибочки&#33; Но почему-то компилировать не хочет (ругается)&#33; <br>C:&#092;zoya&#092;987&#092;987.cpp(2) : error C2146: syntax error : missing &#39;;&#39; before identifier &#39;InitInstance&#39;<br>C:&#092;zoya&#092;987&#092;987.cpp(2) : error C2501: &#39;BOOL&#39; : missing storage-class or type specifiers<br>C:&#092;zoya&#092;987&#092;987.cpp(2) : fatal error C1004: unexpected end of file found<br>Error executing cl.exe.<br>Может быть подскажете... :wall:]]></description>
        <author>Zayka</author>
        <category>Visual C++ / MFC / WTL</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=166373&amp;view=findpost&amp;p=1395487</guid>
        <pubDate>Fri, 29 Dec 2006 09:05:29 +0000</pubDate>
        <title>Создание текстового редактора</title>
        <link>https://forum.sources.ru/index.php?showtopic=166373&amp;view=findpost&amp;p=1395487</link>
        <description><![CDATA[ElcnU: дело было вечером делать было нечего... :D <br>
<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">#include &quot;windows.h&quot;</div><div class="code_line">BOOL &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;InitInstance(HINSTANCE, int);</div><div class="code_line">LRESULT CALLBACK &nbsp; &nbsp;WndProc(HWND, UINT, WPARAM, LPARAM);</div><div class="code_line">HWND hWnd;</div><div class="code_line">HWND hEdit;</div><div class="code_line">HMENU hMenu,hFileMenu;</div><div class="code_line">HFONT hFont;</div><div class="code_line">OPENFILENAME ofn;</div><div class="code_line">char szFile[260];</div><div class="code_line">HANDLE hFile;</div><div class="code_line">#define ID_EDIT &nbsp; &nbsp; &nbsp; &nbsp; 100</div><div class="code_line">#define ID_FILE_OPEN &nbsp; &nbsp;101</div><div class="code_line">#define ID_FILE_SAVE &nbsp; &nbsp;102</div><div class="code_line">#define ID_EXIT &nbsp; &nbsp; &nbsp; &nbsp; 103</div><div class="code_line">int APIENTRY WinMain(HINSTANCE hInstance,</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; HINSTANCE hPrevInstance,</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; LPTSTR &nbsp; &nbsp;lpCmdLine,</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; int &nbsp; &nbsp; &nbsp; nCmdShow)</div><div class="code_line">{</div><div class="code_line">&nbsp;&nbsp; &nbsp;MSG msg;</div><div class="code_line">&nbsp;&nbsp; &nbsp;if (!InitInstance (hInstance, nCmdShow)) </div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;return FALSE;</div><div class="code_line">&nbsp;</div><div class="code_line">&nbsp;&nbsp; &nbsp;while (GetMessage(&amp;msg, NULL, 0, 0)) </div><div class="code_line">&nbsp;&nbsp; &nbsp;{</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;TranslateMessage(&amp;msg);</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;DispatchMessage(&amp;msg);</div><div class="code_line">&nbsp;&nbsp; &nbsp;}</div><div class="code_line">&nbsp;&nbsp; &nbsp;return (int) msg.wParam;</div><div class="code_line">}</div><div class="code_line">BOOL InitInstance(HINSTANCE hInstance, int nCmdShow)</div><div class="code_line">{</div><div class="code_line">&nbsp;&nbsp; &nbsp;WNDCLASSEX wcex;</div><div class="code_line">&nbsp;&nbsp; &nbsp;wcex.cbSize = sizeof(WNDCLASSEX); </div><div class="code_line">&nbsp;&nbsp; &nbsp;wcex.style &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;= CS_HREDRAW | CS_VREDRAW;</div><div class="code_line">&nbsp;&nbsp; &nbsp;wcex.lpfnWndProc &nbsp; &nbsp;= (WNDPROC)WndProc;</div><div class="code_line">&nbsp;&nbsp; &nbsp;wcex.cbClsExtra &nbsp; &nbsp; = 0;</div><div class="code_line">&nbsp;&nbsp; &nbsp;wcex.cbWndExtra &nbsp; &nbsp; = 0;</div><div class="code_line">&nbsp;&nbsp; &nbsp;wcex.hInstance &nbsp; &nbsp; &nbsp;= hInstance;</div><div class="code_line">&nbsp;&nbsp; &nbsp;wcex.hIcon &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;= NULL;</div><div class="code_line">&nbsp;&nbsp; &nbsp;wcex.hCursor &nbsp; &nbsp; &nbsp; &nbsp;= LoadCursor(NULL, IDC_ARROW);</div><div class="code_line">&nbsp;&nbsp; &nbsp;wcex.hbrBackground &nbsp;= (HBRUSH)(COLOR_WINDOW+1);</div><div class="code_line">&nbsp;&nbsp; &nbsp;wcex.lpszMenuName &nbsp; = NULL;</div><div class="code_line">&nbsp;&nbsp; &nbsp;wcex.lpszClassName &nbsp;= &quot;FRM_TEXTEDIT&quot;;</div><div class="code_line">&nbsp;&nbsp; &nbsp;wcex.hIconSm &nbsp; &nbsp; &nbsp; &nbsp;= NULL;</div><div class="code_line">&nbsp;&nbsp; &nbsp;RegisterClassEx(&amp;wcex); &nbsp; &nbsp; </div><div class="code_line">&nbsp;&nbsp; &nbsp;hWnd = CreateWindow(wcex.lpszClassName, &quot;Text Edit&quot;, WS_OVERLAPPEDWINDOW,</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp;CW_USEDEFAULT, 0, CW_USEDEFAULT, 0, NULL, NULL, hInstance, NULL);</div><div class="code_line">&nbsp;&nbsp; &nbsp;if (!hWnd)</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;return FALSE;</div><div class="code_line">&nbsp;&nbsp; &nbsp;ShowWindow(hWnd, nCmdShow);</div><div class="code_line">&nbsp;&nbsp; &nbsp;UpdateWindow(hWnd);</div><div class="code_line">//=====================================================</div><div class="code_line">&nbsp;&nbsp; &nbsp;ZeroMemory(&amp;ofn, sizeof(ofn));</div><div class="code_line">&nbsp;&nbsp; &nbsp;ofn.lStructSize = sizeof(ofn);</div><div class="code_line">&nbsp;&nbsp; &nbsp;ofn.hwndOwner = hWnd;</div><div class="code_line">&nbsp;&nbsp; &nbsp;ofn.lpstrFile = szFile;</div><div class="code_line">&nbsp;&nbsp; &nbsp;ofn.lpstrFile[0] = &#39;{text}&#39;;</div><div class="code_line">&nbsp;&nbsp; &nbsp;ofn.nMaxFile = sizeof(szFile);</div><div class="code_line">&nbsp;&nbsp; &nbsp;ofn.lpstrFilter = &quot;All{text}*.*{text}Text{text}*.TXT{text}&quot;;</div><div class="code_line">&nbsp;&nbsp; &nbsp;ofn.nFilterIndex = 1;</div><div class="code_line">&nbsp;&nbsp; &nbsp;ofn.lpstrFileTitle = NULL;</div><div class="code_line">&nbsp;&nbsp; &nbsp;ofn.nMaxFileTitle = 0;</div><div class="code_line">&nbsp;&nbsp; &nbsp;ofn.lpstrInitialDir = NULL;</div><div class="code_line">&nbsp;&nbsp; &nbsp;ofn.Flags = OFN_PATHMUSTEXIST | OFN_FILEMUSTEXIST;</div><div class="code_line">//=================================================</div><div class="code_line">&nbsp;&nbsp; &nbsp;return TRUE;</div><div class="code_line">}</div><div class="code_line">LRESULT CALLBACK WndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam)</div><div class="code_line">{</div><div class="code_line">&nbsp;&nbsp; &nbsp;int wmId, wmEvent;</div><div class="code_line">&nbsp;&nbsp; &nbsp;switch (message) </div><div class="code_line">&nbsp;&nbsp; &nbsp;{</div><div class="code_line">&nbsp;&nbsp; &nbsp;case WM_CREATE:</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;{</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;RECT rcClient;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;::GetClientRect(hWnd,&amp;rcClient);</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;hEdit=CreateWindow(&quot;EDIT&quot;,NULL,WS_CHILD | WS_VISIBLE | WS_VSCROLL | </div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;ES_LEFT | ES_MULTILINE | ES_AUTOVSCROLL, 0, 0, 0, 0, &nbsp;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;hWnd,(HMENU) ID_EDIT, (HINSTANCE)::GetModuleHandle(NULL), NULL); </div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;hMenu=::CreateMenu();</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;hFileMenu=::CreatePopupMenu();</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;::AppendMenu(hMenu,MF_STRING|MF_POPUP,(UINT)(LONG_PTR)hFileMenu,&quot;Файл&quot;);</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;::AppendMenu(hFileMenu,MF_STRING,ID_FILE_OPEN,&quot;Открыть&quot;);</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;::AppendMenu(hFileMenu,MF_STRING,ID_FILE_SAVE,&quot;Сохранить&quot;);</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;::AppendMenu(hFileMenu,MF_SEPARATOR,0,NULL);</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;::AppendMenu(hFileMenu,MF_STRING,ID_EXIT,&quot;Выход&quot;);</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;::SetMenu(hWnd,hMenu);</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;hFont=::CreateFont(12,0,0,0,FW_NORMAL,FALSE,FALSE,0,ANSI_CHARSET,</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;OUT_DEFAULT_PRECIS,CLIP_DEFAULT_PRECIS,DEFAULT_QUALITY,</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;DEFAULT_PITCH | FF_SWISS,&quot;Arial&quot;);</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;::SendMessage(hEdit,WM_SETFONT,WPARAM(hFont),TRUE); &nbsp; &nbsp; &nbsp; &nbsp; </div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;::SendMessage(hEdit,EM_SETLIMITTEXT,WPARAM(-1),0); &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;break;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;}</div><div class="code_line">&nbsp;&nbsp; &nbsp;case WM_SIZE:</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;{</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;MoveWindow(hEdit,0, 0,LOWORD(lParam),HIWORD(lParam),TRUE);</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;return 0; </div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;}</div><div class="code_line">&nbsp;&nbsp; &nbsp;case WM_COMMAND:</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;wmId &nbsp; &nbsp;= LOWORD(wParam); </div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;wmEvent = HIWORD(wParam); </div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;switch (wmId)</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;{</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;case ID_FILE_OPEN:</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;{</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;if (GetOpenFileName(&amp;ofn)==TRUE) </div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;{</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;hFile = CreateFile(ofn.lpstrFile, GENERIC_READ,</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;0, (LPSECURITY_ATTRIBUTES) NULL,</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;OPEN_EXISTING, FILE_ATTRIBUTE_NORMAL,</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;(HANDLE) NULL);</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;if(hFile==NULL)</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;::MessageBox(hWnd,&quot;Не могу открыть файл&quot;,&quot;Ошибка&quot;,0x10);</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;DWORD nBufLen=::GetFileSize(hFile,NULL);</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;DWORD nBufLenToRead=0;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;char* szReadBuf=new char[nBufLen];</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;if(!::ReadFile(hFile,szReadBuf,nBufLen,&amp;nBufLenToRead,NULL))</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;::MessageBox(hWnd,&quot;Не могу прочитать файл&quot;,&quot;Ошибка&quot;,0x10);</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;::SetWindowText(hEdit,szReadBuf);</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;delete[] szReadBuf;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;::CloseHandle(hFile);</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;}</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;break;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;}</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;case ID_FILE_SAVE:</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;{</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;if (GetSaveFileName(&amp;ofn)==TRUE) </div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;{</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;hFile = CreateFile(ofn.lpstrFile, GENERIC_WRITE,</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;0, (LPSECURITY_ATTRIBUTES) NULL,</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;CREATE_ALWAYS, FILE_ATTRIBUTE_NORMAL,</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;(HANDLE) NULL);</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;if(hFile==NULL)</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;::MessageBox(hWnd,&quot;Не могу открыть файл&quot;,&quot;Ошибка&quot;,0x10);</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;DWORD nBufLen=(DWORD)SendMessage(hEdit,WM_GETTEXTLENGTH,0,0);</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;DWORD nBufLenToWrite=0;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;char* szWriteBuf=new char[nBufLen];</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;::GetWindowText(hEdit,szWriteBuf,nBufLen);</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;if(!::WriteFile(hFile,szWriteBuf,nBufLen,&amp;nBufLenToWrite,NULL))</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;::MessageBox(hWnd,&quot;Не могу записать в файл&quot;,&quot;Ошибка&quot;,0x10);</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;delete[] szWriteBuf;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;::CloseHandle(hFile);</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;}</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;break;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;}</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;case ID_EXIT:</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;{</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;::DestroyWindow(hWnd);</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;break;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;}</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;default:</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;return DefWindowProc(hWnd, message, wParam, lParam);</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;}</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;break;</div><div class="code_line">&nbsp;&nbsp; &nbsp;case WM_DESTROY:</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;PostQuitMessage(0);</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;break;</div><div class="code_line">&nbsp;&nbsp; &nbsp;default:</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;return DefWindowProc(hWnd, message, wParam, lParam);</div><div class="code_line">&nbsp;&nbsp; &nbsp;}</div><div class="code_line">&nbsp;&nbsp; &nbsp;return 0;</div><div class="code_line">}</div></ol></div></div></div></div>]]></description>
        <author>ElcnU</author>
        <category>Visual C++ / MFC / WTL</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=166373&amp;view=findpost&amp;p=1394883</guid>
        <pubDate>Thu, 28 Dec 2006 15:50:38 +0000</pubDate>
        <title>Создание текстового редактора</title>
        <link>https://forum.sources.ru/index.php?showtopic=166373&amp;view=findpost&amp;p=1394883</link>
        <description><![CDATA[Zayka: А может всетаки поможете все мои знания собрать в что-то единое, а главное работающее&#33;&#33; Не ужели я так мало знаю&#33; :&#39;(  А еще мне вчера помогли создать окошко<br>
<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">#include &#60;Windows.h&#62;</div><div class="code_line">// #5</div><div class="code_line">LRESULT __stdcall WndProc(HWND hwnd,</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;UINT message,</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;WPARAM wParam,</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;LPARAM lParam)</div><div class="code_line">{</div><div class="code_line">&nbsp;&nbsp; &nbsp;switch(message)</div><div class="code_line">&nbsp;&nbsp; &nbsp;{</div><div class="code_line">&nbsp;&nbsp; &nbsp;case WM_CLOSE:</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;DestroyWindow(hwnd);</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;break;</div><div class="code_line">&nbsp;&nbsp; &nbsp;case WM_DESTROY:</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;PostQuitMessage(0);</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;break;</div><div class="code_line">&nbsp;&nbsp; &nbsp;}</div><div class="code_line">&nbsp;</div><div class="code_line">&nbsp;&nbsp; &nbsp;return DefWindowProc(hwnd, message, wParam, lParam);</div><div class="code_line">}</div><div class="code_line">&nbsp;</div><div class="code_line">&nbsp;</div><div class="code_line">// #1</div><div class="code_line">int __stdcall WinMain(HINSTANCE hInst,</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;HINSTANCE hPrev,</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;char* pszCmdLine,</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;int nCmdShow)</div><div class="code_line">{</div><div class="code_line">&nbsp;&nbsp; &nbsp;// #2</div><div class="code_line">&nbsp;&nbsp; &nbsp;WNDCLASS wc = {0};</div><div class="code_line">&nbsp;&nbsp; &nbsp;wc.hbrBackground = (HBRUSH)COLOR_WINDOW;</div><div class="code_line">&nbsp;&nbsp; &nbsp;wc.hCursor = LoadCursor(NULL, IDC_ARROW);</div><div class="code_line">&nbsp;&nbsp; &nbsp;wc.hInstance = hInst;</div><div class="code_line">&nbsp;&nbsp; &nbsp;wc.lpszClassName = TEXT(&quot;MyWndClassName&quot;);</div><div class="code_line">&nbsp;&nbsp; &nbsp;wc.lpfnWndProc = WndProc;</div><div class="code_line">&nbsp;</div><div class="code_line">&nbsp;&nbsp; &nbsp;if(RegisterClass(&amp;wc))</div><div class="code_line">&nbsp;&nbsp; &nbsp;{</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;// #3 </div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;HWND hwnd = CreateWindowEx(0, wc.lpszClassName,</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;TEXT(&quot;My Window&quot;), WS_OVERLAPPEDWINDOW | WS_VISIBLE,</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;CW_USEDEFAULT, CW_USEDEFAULT, CW_USEDEFAULT, CW_USEDEFAULT,</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;NULL, NULL, wc.hInstance, NULL);</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;if(hwnd)</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;{</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;// #4</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;MSG msg;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;for(;GetMessage(&amp;msg, NULL, 0, 0);)</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;{</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;TranslateMessage(&amp;msg);</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;DispatchMessage(&amp;msg);</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;}</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;}</div><div class="code_line">&nbsp;&nbsp; &nbsp;}</div><div class="code_line">&nbsp;</div><div class="code_line">&nbsp;&nbsp; &nbsp;return 0;</div><div class="code_line">}</div></ol></div></div></div></div> <br>
<br>
<span class="tag-color tag-color-named" data-value="gray" style="color: gray"><span class='tag-size' data-value='7' style='font-size:7pt;'>Добавлено <time class="tag-mergetime" datetime="2006-12-28T16:02:22+00:00">28.12.06, 16:02</time></span></span><br>
ПОМОГИТЕ пожалуйта собрать все в кучу&#33;  Очень надо&#33;]]></description>
        <author>Zayka</author>
        <category>Visual C++ / MFC / WTL</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=166373&amp;view=findpost&amp;p=1394879</guid>
        <pubDate>Thu, 28 Dec 2006 15:47:39 +0000</pubDate>
        <title>Создание текстового редактора</title>
        <link>https://forum.sources.ru/index.php?showtopic=166373&amp;view=findpost&amp;p=1394879</link>
        <description><![CDATA[BlackEmperor: <div class='tag-quote'><a class='tag-quote-link' href='https://forum.sources.ru/index.php?showtopic=166373&view=findpost&p=1394876'><span class='tag-quote-prefix'>Цитата</span></a> <span class='tag-quote__quote-info'>Zayka &#064; <time class="tag-quote__quoted-time" datetime="2006-12-28T15:46:29+00:00">28.12.06, 15:46</time></span><div class='quote '>Еще отображение текста с переходом на новую строку</div></div><br>
Ну вот и отлично, знаешь и то и то, так в чем вопрос, поконкретнее моно? О проблеме конкретной]]></description>
        <author>BlackEmperor</author>
        <category>Visual C++ / MFC / WTL</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=166373&amp;view=findpost&amp;p=1394876</guid>
        <pubDate>Thu, 28 Dec 2006 15:46:29 +0000</pubDate>
        <title>Создание текстового редактора</title>
        <link>https://forum.sources.ru/index.php?showtopic=166373&amp;view=findpost&amp;p=1394876</link>
        <description><![CDATA[Zayka: Еще отображение текста с переходом на новую строку<br>
<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">//отобразить первую строку.</div><div class="code_line">ClientDC.TextOut (x,y, lpszHello, strlen(lpszHello));</div><div class="code_line">//вычислить размер первой строки</div><div class="code_line">CSize sizeString=</div><div class="code_line">ClientDC.GetTextExtent (lpszHello, strlen(lpszHello));</div><div class="code_line">//откорректировать кординату у</div><div class="code_line">y+=sizeString.cy;</div><div class="code_line">//отобразить вторую строку</div><div class="code_line">ClientDC.TextOut(x,y, lpszWorld, strlen (lpszWorld))</div></ol></div></div></div></div>]]></description>
        <author>Zayka</author>
        <category>Visual C++ / MFC / WTL</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=166373&amp;view=findpost&amp;p=1394870</guid>
        <pubDate>Thu, 28 Dec 2006 15:41:40 +0000</pubDate>
        <title>Создание текстового редактора</title>
        <link>https://forum.sources.ru/index.php?showtopic=166373&amp;view=findpost&amp;p=1394870</link>
        <description><![CDATA[BlackEmperor: <div class='tag-quote'><a class='tag-quote-link' href='https://forum.sources.ru/index.php?showtopic=166373&view=findpost&p=1394855'><span class='tag-quote-prefix'>Цитата</span></a> <span class='tag-quote__quote-info'>Zayka &#064; <time class="tag-quote__quoted-time" datetime="2006-12-28T15:30:51+00:00">28.12.06, 15:30</time></span><div class='quote '>Знаю как осуществить чтение данных из файла(Из книги)</div></div><br>
Мдяя, как-то маловато для текстового редактора :)<br>
Ну, создай студийным визардом проект на основе ричедита и будет тебе готовый текстовый редактор с минимальными возможностями без написания единой строчки кода :)<br>
А все самому и ручками это долго и много...<br>
Есть проблемы задавай вопросы, народ поможет, а писать редактор с нуля самому эт вряд-ли кто-то захочет, ну на крайний счет есть раздел разовой подработке, мож туда ;) :)]]></description>
        <author>BlackEmperor</author>
        <category>Visual C++ / MFC / WTL</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=166373&amp;view=findpost&amp;p=1394867</guid>
        <pubDate>Thu, 28 Dec 2006 15:39:28 +0000</pubDate>
        <title>Создание текстового редактора</title>
        <link>https://forum.sources.ru/index.php?showtopic=166373&amp;view=findpost&amp;p=1394867</link>
        <description><![CDATA[cozzzy: <div class='tag-quote'><a class='tag-quote-link' href='https://forum.sources.ru/index.php?showtopic=166373&view=findpost&p=1394855'><span class='tag-quote-prefix'>Цитата</span></a> <span class='tag-quote__quote-info'>Zayka &#064; <time class="tag-quote__quoted-time" datetime="2006-12-28T15:30:51+00:00">28.12.06, 15:30</time></span><div class='quote '>Знаю как осуществить чтение данных из файла</div></div><br>
Ну это уже пол-дела  :D]]></description>
        <author>cozzzy</author>
        <category>Visual C++ / MFC / WTL</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=166373&amp;view=findpost&amp;p=1394855</guid>
        <pubDate>Thu, 28 Dec 2006 15:30:51 +0000</pubDate>
        <title>Создание текстового редактора</title>
        <link>https://forum.sources.ru/index.php?showtopic=166373&amp;view=findpost&amp;p=1394855</link>
        <description><![CDATA[Zayka: Знаю как осуществить чтение данных из файла(Из книги)<br>
<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">tru </div><div class="code_line">{</div><div class="code_line">CFile*pFile = new CFile(&quot;test.txt&quot;,</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; CFile::modeRead</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; | CFile:typeBinary);</div><div class="code_line">UNIT count;</div><div class="code_line">BYTE* pBuffer= new BYTE [255];</div><div class="code_line">while (0&#60; (count = pFile-&#62;Read(pBuffer,205)))</div><div class="code_line">{</div><div class="code_line">//</div><div class="code_line">}</div><div class="code_line">{</div><div class="code_line">pFile-&#62;Close();</div><div class="code_line">delete pFile;</div><div class="code_line">{</div><div class="code_line">catch (CFileException* pe)</div><div class="code_line">{</div><div class="code_line">pe-&#62;ReportError();</div><div class="code_line">if (pFile)</div><div class="code_line">{</div><div class="code_line">delete pFile;</div><div class="code_line">}</div><div class="code_line">}</div></ol></div></div></div></div> <br>
<br>
<span class="tag-color tag-color-named" data-value="gray" style="color: gray"><span class='tag-size' data-value='7' style='font-size:7pt;'>Добавлено <time class="tag-mergetime" datetime="2006-12-28T15:35:03+00:00">28.12.06, 15:35</time></span></span><br>
Так же как осуществить выравнивание<br>
<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">pDC-&#62; SetTextAlign(TA_LEFT);</div></ol></div></div></div></div>]]></description>
        <author>Zayka</author>
        <category>Visual C++ / MFC / WTL</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=166373&amp;view=findpost&amp;p=1394841</guid>
        <pubDate>Thu, 28 Dec 2006 15:18:31 +0000</pubDate>
        <title>Создание текстового редактора</title>
        <link>https://forum.sources.ru/index.php?showtopic=166373&amp;view=findpost&amp;p=1394841</link>
        <description><![CDATA[B.V.: Могу коротко перевести содержание первого поста: напишите мне текстовый редактор.<br><br>А какие уже усилия были предприняты для реализации вышесказанного?]]></description>
        <author>B.V.</author>
        <category>Visual C++ / MFC / WTL</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=166373&amp;view=findpost&amp;p=1394835</guid>
        <pubDate>Thu, 28 Dec 2006 15:14:23 +0000</pubDate>
        <title>Создание текстового редактора</title>
        <link>https://forum.sources.ru/index.php?showtopic=166373&amp;view=findpost&amp;p=1394835</link>
        <description><![CDATA[Zayka: Добрый вечер&#33; У меня возникла одна проблемка надеюсь вы мне поможите ее решить (в поиске искала, но ничего не нашла). Мне необходимо создать тектовый редактор который открывает единственный текстовый документ (по умолчанию) в окне созданого в ручную(уже реализовано - окошко), при этом текст должен быть Arial, выровненный по левому краю, а также необходимо что бы слова не вмешающиеся на строку целиком переносились на новую (перенос должен работать при изменении размера окна)&#33; И еще самое главное - все должно быть реализовано без использование комапонентов осуществляющих форматирование текста&#33; <br>Заранее СПАСИБ&#33; Жду вашей помощи&#33; :huh:]]></description>
        <author>Zayka</author>
        <category>Visual C++ / MFC / WTL</category>
      </item>
	
      </channel>
      </rss>
	