<?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[OK, Abbrechen, Übernehmen Buttons im Property Sheet]]></title><description><![CDATA[<p>ich habe ein property sheet in einem CFormView view.</p>
<p>das ps ist subclassed. die property pages sind ebenfalls subclassed. denke es ist soweit auch alles bekannt. eine simple geschichte. funktioniert auch einwandfrei.</p>
<p>ich möchte in meinem programm einstellungen mit hilfe eines ps vornehmen lassen. das ps und das layout ist bereits fertig. und zwar passt sich das frame an das ps an. d.h. das child fenster ist genau so gross wie das ps und die darin verwalteten pp's.</p>
<p>weiss jemand, wie ich unter das ps noch ein paar buttons hinzufügen kann?</p>
<p>hier meine onsize aus dem psView:</p>
<pre><code class="language-cpp">void CEinstellungenView::OnSize(UINT nType, int cx, int cy)
{
	if (nType != SIZE_MINIMIZED &amp;&amp; cx != 0 &amp;&amp; cy != 0 &amp;&amp; m_pPropSheet != NULL)
	{
		if (m_bSizedBefore == FALSE)
		{
			m_bSizedBefore = TRUE;

			// get the size of the property sheet
			CRect rectSized;
			m_pPropSheet-&gt;GetWindowRect(rectSized);

			// calculate the size of the frame
			CFrameWnd* pFrame = GetParentFrame();
			if (pFrame != NULL)
			{
				pFrame-&gt;CalcWindowRect(rectSized);
				CWnd* pParent = pFrame-&gt;GetParent();

				if (pParent != NULL)
					pParent-&gt;ScreenToClient(rectSized);

				// resize and reposition the frame
				pFrame-&gt;MoveWindow(rectSized);
			}
		}
	}
}
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/topic/60638/ok-abbrechen-übernehmen-buttons-im-property-sheet</link><generator>RSS for Node</generator><lastBuildDate>Wed, 03 Jun 2026 09:44:18 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/60638.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 07 Jan 2004 12:56:45 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to OK, Abbrechen, Übernehmen Buttons im Property Sheet on Wed, 07 Jan 2004 12:56:45 GMT]]></title><description><![CDATA[<p>ich habe ein property sheet in einem CFormView view.</p>
<p>das ps ist subclassed. die property pages sind ebenfalls subclassed. denke es ist soweit auch alles bekannt. eine simple geschichte. funktioniert auch einwandfrei.</p>
<p>ich möchte in meinem programm einstellungen mit hilfe eines ps vornehmen lassen. das ps und das layout ist bereits fertig. und zwar passt sich das frame an das ps an. d.h. das child fenster ist genau so gross wie das ps und die darin verwalteten pp's.</p>
<p>weiss jemand, wie ich unter das ps noch ein paar buttons hinzufügen kann?</p>
<p>hier meine onsize aus dem psView:</p>
<pre><code class="language-cpp">void CEinstellungenView::OnSize(UINT nType, int cx, int cy)
{
	if (nType != SIZE_MINIMIZED &amp;&amp; cx != 0 &amp;&amp; cy != 0 &amp;&amp; m_pPropSheet != NULL)
	{
		if (m_bSizedBefore == FALSE)
		{
			m_bSizedBefore = TRUE;

			// get the size of the property sheet
			CRect rectSized;
			m_pPropSheet-&gt;GetWindowRect(rectSized);

			// calculate the size of the frame
			CFrameWnd* pFrame = GetParentFrame();
			if (pFrame != NULL)
			{
				pFrame-&gt;CalcWindowRect(rectSized);
				CWnd* pParent = pFrame-&gt;GetParent();

				if (pParent != NULL)
					pParent-&gt;ScreenToClient(rectSized);

				// resize and reposition the frame
				pFrame-&gt;MoveWindow(rectSized);
			}
		}
	}
}
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/430743</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/430743</guid><dc:creator><![CDATA[alex-t]]></dc:creator><pubDate>Wed, 07 Jan 2004 12:56:45 GMT</pubDate></item></channel></rss>