<?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[OnDraw]]></title><description><![CDATA[<p>HI</p>
<p>Ich versuche ien koordinatensystem zu zeichnen aber es funktioniert leider nicht.</p>
<p>Die Definition des Zeichenbereiches:</p>
<pre><code class="language-cpp">void CMdipgenView::OnPrepareDC(CDC* pDC, CPrintInfo* pInfo) 
{
	// TODO: Add your specialized code here and/or call the base class

	CRect clientRect;

	pDC-&gt;SetMapMode (MM_ISOTROPIC);
	pDC-&gt;SetWindowExt (13600, -10600);
	pDC-&gt;SetWindowOrg (-300, 10300);
	pDC-&gt;SetViewportExt (clientRect.right-clientRect.left, clientRect.bottom-clientRect.top);
	pDC-&gt;SetViewportOrg (0, 0);

	CView::OnPrepareDC(pDC, pInfo);
}
</code></pre>
<p>und das zeichnen selber:</p>
<pre><code class="language-cpp">void CMdipgenView::OnDraw(CDC* pDC)
{
	CMdipgenDoc* pDoc = GetDocument();
	ASSERT_VALID(pDoc);

	CPen achsenPen (PS_SOLID, 1,RGB(0, 0, 0));
	CPen *pOldPen;

	//Zeichnen der Achsen + Pfeilen
	pOldPen = pDC-&gt;SelectObject (&amp;achsenPen);

	pDC-&gt;MoveTo(0,10000);
	pDC-&gt;LineTo(0,0);
	pDC-&gt;LineTo(10000,0);

	pDC-&gt;SelectObject (pOldPen);

}
</code></pre>
<p>Wo ist da der Hund begraben??</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/171760/ondraw</link><generator>RSS for Node</generator><lastBuildDate>Sun, 26 Apr 2026 23:56:39 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/171760.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 29 Jan 2007 08:13:20 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to OnDraw on Mon, 29 Jan 2007 08:13:20 GMT]]></title><description><![CDATA[<p>HI</p>
<p>Ich versuche ien koordinatensystem zu zeichnen aber es funktioniert leider nicht.</p>
<p>Die Definition des Zeichenbereiches:</p>
<pre><code class="language-cpp">void CMdipgenView::OnPrepareDC(CDC* pDC, CPrintInfo* pInfo) 
{
	// TODO: Add your specialized code here and/or call the base class

	CRect clientRect;

	pDC-&gt;SetMapMode (MM_ISOTROPIC);
	pDC-&gt;SetWindowExt (13600, -10600);
	pDC-&gt;SetWindowOrg (-300, 10300);
	pDC-&gt;SetViewportExt (clientRect.right-clientRect.left, clientRect.bottom-clientRect.top);
	pDC-&gt;SetViewportOrg (0, 0);

	CView::OnPrepareDC(pDC, pInfo);
}
</code></pre>
<p>und das zeichnen selber:</p>
<pre><code class="language-cpp">void CMdipgenView::OnDraw(CDC* pDC)
{
	CMdipgenDoc* pDoc = GetDocument();
	ASSERT_VALID(pDoc);

	CPen achsenPen (PS_SOLID, 1,RGB(0, 0, 0));
	CPen *pOldPen;

	//Zeichnen der Achsen + Pfeilen
	pOldPen = pDC-&gt;SelectObject (&amp;achsenPen);

	pDC-&gt;MoveTo(0,10000);
	pDC-&gt;LineTo(0,0);
	pDC-&gt;LineTo(10000,0);

	pDC-&gt;SelectObject (pOldPen);

}
</code></pre>
<p>Wo ist da der Hund begraben??</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1218978</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1218978</guid><dc:creator><![CDATA[Plueschi]]></dc:creator><pubDate>Mon, 29 Jan 2007 08:13:20 GMT</pubDate></item><item><title><![CDATA[Reply to OnDraw on Mon, 29 Jan 2007 08:28:35 GMT]]></title><description><![CDATA[<p>Gegenfrage: Wie äußert sich diese &quot;funktioniert nicht&quot;?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1218988</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1218988</guid><dc:creator><![CDATA[CStoll]]></dc:creator><pubDate>Mon, 29 Jan 2007 08:28:35 GMT</pubDate></item><item><title><![CDATA[Reply to OnDraw on Mon, 29 Jan 2007 08:38:14 GMT]]></title><description><![CDATA[<p>Es wir nichts gezeichnet die Zeichenfläche ist leer.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1218993</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1218993</guid><dc:creator><![CDATA[Plueschi]]></dc:creator><pubDate>Mon, 29 Jan 2007 08:38:14 GMT</pubDate></item><item><title><![CDATA[Reply to OnDraw on Mon, 29 Jan 2007 09:33:54 GMT]]></title><description><![CDATA[<p>Ich vermute mal dein clientRect zeigt ins Nirvana. Ich sehe nirgends eine Initialisierung dessen.<br />
clientRect.SetRect(0,0,1000,1000);<br />
KÖNNTE helen.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1219023</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1219023</guid><dc:creator><![CDATA[DaDings]]></dc:creator><pubDate>Mon, 29 Jan 2007 09:33:54 GMT</pubDate></item><item><title><![CDATA[Reply to OnDraw on Mon, 29 Jan 2007 09:54:43 GMT]]></title><description><![CDATA[<pre><code class="language-cpp">CRect clientRect;
this-&gt;GetClientRect(clientRect);
</code></pre>
<p>Könnte auch helfen...</p>
<p>Gruß</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1219039</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1219039</guid><dc:creator><![CDATA[Jogilein]]></dc:creator><pubDate>Mon, 29 Jan 2007 09:54:43 GMT</pubDate></item><item><title><![CDATA[Reply to OnDraw on Mon, 29 Jan 2007 09:56:42 GMT]]></title><description><![CDATA[<p>danke</p>
<p>get Client Rect war die Lösung.</p>
<p>Hatte ich vergessen.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1219041</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1219041</guid><dc:creator><![CDATA[Plueschi]]></dc:creator><pubDate>Mon, 29 Jan 2007 09:56:42 GMT</pubDate></item></channel></rss>