<?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 CreatePointFont + Terminal]]></title><description><![CDATA[<p>Hallo zusammen ;),</p>
<p>ich habe ein kleines Projekt erstellt (SDI, RTFView und Control).<br />
Ich lade eine Textdatei und stelle sie dar.<br />
Bis hierher klappt das !</p>
<p>Wenn ich aber den Font ändern möchte funktioniert das nicht, ich versuche auf Terminal umzustellen aber das was dargestellt wird ist keine Block Ascii (also Terminal) <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f61e.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--disappointed_face"
      title=":("
      alt="😞"
    /> !</p>
<p>Hie der Code meiner OnUpdate();</p>
<pre><code class="language-cpp">void CThereader0003View::OnUpdate(CView* pSender, LPARAM lHint, CObject* pHint) 
{
	CThereader0003Doc *pDoc = GetDocument ();

	CRichEditCtrl&amp; rCtrl = GetRichEditCtrl();
	CHARFORMAT cfm;				
	CFont myFont;
	myFont.CreatePointFont(90,&quot;Terminal&quot;,NULL); // Font erstellen
	rCtrl.SetFont(&amp;myFont);	

	rCtrl.ReplaceSel(pDoc-&gt;cstrAusgabe);
    rCtrl.SetSel(0,482);		
	cfm.cbSize		= sizeof(CHARFORMAT);	
	cfm.dwMask		= CFM_BOLD;					
	cfm.dwEffects	= CFM_BOLD;

	rCtrl.SetSelectionCharFormat (cfm);
	rCtrl.SetSel (0,0);	
}
</code></pre>
<p>Wäre Klasse wenn Ihr mir sagen könntet wie es richtig geht !<br />
Gruß<br />
ShadowEater</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/190520/problem-mit-createpointfont-terminal</link><generator>RSS for Node</generator><lastBuildDate>Sat, 11 Apr 2026 12:21:26 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/190520.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 23 Aug 2007 15:56:07 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Problem mit CreatePointFont + Terminal on Thu, 23 Aug 2007 15:56:07 GMT]]></title><description><![CDATA[<p>Hallo zusammen ;),</p>
<p>ich habe ein kleines Projekt erstellt (SDI, RTFView und Control).<br />
Ich lade eine Textdatei und stelle sie dar.<br />
Bis hierher klappt das !</p>
<p>Wenn ich aber den Font ändern möchte funktioniert das nicht, ich versuche auf Terminal umzustellen aber das was dargestellt wird ist keine Block Ascii (also Terminal) <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f61e.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--disappointed_face"
      title=":("
      alt="😞"
    /> !</p>
<p>Hie der Code meiner OnUpdate();</p>
<pre><code class="language-cpp">void CThereader0003View::OnUpdate(CView* pSender, LPARAM lHint, CObject* pHint) 
{
	CThereader0003Doc *pDoc = GetDocument ();

	CRichEditCtrl&amp; rCtrl = GetRichEditCtrl();
	CHARFORMAT cfm;				
	CFont myFont;
	myFont.CreatePointFont(90,&quot;Terminal&quot;,NULL); // Font erstellen
	rCtrl.SetFont(&amp;myFont);	

	rCtrl.ReplaceSel(pDoc-&gt;cstrAusgabe);
    rCtrl.SetSel(0,482);		
	cfm.cbSize		= sizeof(CHARFORMAT);	
	cfm.dwMask		= CFM_BOLD;					
	cfm.dwEffects	= CFM_BOLD;

	rCtrl.SetSelectionCharFormat (cfm);
	rCtrl.SetSel (0,0);	
}
</code></pre>
<p>Wäre Klasse wenn Ihr mir sagen könntet wie es richtig geht !<br />
Gruß<br />
ShadowEater</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1350611</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1350611</guid><dc:creator><![CDATA[ShadowEater]]></dc:creator><pubDate>Thu, 23 Aug 2007 15:56:07 GMT</pubDate></item></channel></rss>