<?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[CFormView, SplitterWnd und UpdateData]]></title><description><![CDATA[<p>Also, ich habe einen CFormView der Optionen darstellen soll.<br />
Dazu läd er diese in der OnInitialUpdate in die entsprechenden<br />
Variablen, welches auch alles klappt, auch die Optionsdaten sind da.<br />
Jedoch schreibt UpdateData(False) dann diese nicht in die<br />
Variablen hinein. Wenn ich GetDlgItem Caste, und SetWindowText<br />
nehme, geht es. Ist aber nicht so prickelnd <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f644.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--face_with_rolling_eyes"
      title=":rolling_eyes:"
      alt="🙄"
    /></p>
<p>Gibts nen anderen Weg, oder woran könnte es liegen, das UpdateData<br />
nicht richtig funktioniert ? Kann es daran liegen das der FormView<br />
in einem Splitterwnd liegt ?</p>
<pre><code class="language-cpp">CFormView::OnInitialUpdate();
	GetParentFrame()-&gt;RecalcLayout();
	ResizeParentToFit();
		HINSTANCE hInstance = AfxGetInstanceHandle();
    //Bitmap-Handle besorgen und Bitmap laden
    HBITMAP hBitmap = LoadBitmap(hInstance, MAKEINTRESOURCE(IDB_ORDNER));
    //Bitmap auf Button bringen
    m_dir.SetBitmap(hBitmap);
	m_dir2.SetBitmap(hBitmap);

	projektopt = GetDocument()-&gt;GetOptionen();
	static_cast&lt;CEdit*&gt;(GetDlgItem(IDC_PFAD))-&gt;SetWindowText(projektopt-&gt;Getcodepfad().c_str());
	m_dateipfad = projektopt-&gt;Getdateipfad().c_str();
	if(projektopt-&gt;Getklammer())
	{
		((CButton*)GetDlgItem(IDC_RADIO1))-&gt;SetCheck(true);
		((CButton*)GetDlgItem(IDC_RADIO2))-&gt;SetCheck(false);
	//	OnRadio1();
	}
	else
	{
		((CButton*)GetDlgItem(IDC_RADIO2))-&gt;SetCheck(true);
		((CButton*)GetDlgItem(IDC_RADIO1))-&gt;SetCheck(false);
	}
	UpdateData(false);
</code></pre>
<p>Devil</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/76477/cformview-splitterwnd-und-updatedata</link><generator>RSS for Node</generator><lastBuildDate>Fri, 24 Apr 2026 21:31:32 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/76477.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 11 Jun 2004 20:13:37 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to CFormView, SplitterWnd und UpdateData on Fri, 11 Jun 2004 20:16:56 GMT]]></title><description><![CDATA[<p>Also, ich habe einen CFormView der Optionen darstellen soll.<br />
Dazu läd er diese in der OnInitialUpdate in die entsprechenden<br />
Variablen, welches auch alles klappt, auch die Optionsdaten sind da.<br />
Jedoch schreibt UpdateData(False) dann diese nicht in die<br />
Variablen hinein. Wenn ich GetDlgItem Caste, und SetWindowText<br />
nehme, geht es. Ist aber nicht so prickelnd <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f644.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--face_with_rolling_eyes"
      title=":rolling_eyes:"
      alt="🙄"
    /></p>
<p>Gibts nen anderen Weg, oder woran könnte es liegen, das UpdateData<br />
nicht richtig funktioniert ? Kann es daran liegen das der FormView<br />
in einem Splitterwnd liegt ?</p>
<pre><code class="language-cpp">CFormView::OnInitialUpdate();
	GetParentFrame()-&gt;RecalcLayout();
	ResizeParentToFit();
		HINSTANCE hInstance = AfxGetInstanceHandle();
    //Bitmap-Handle besorgen und Bitmap laden
    HBITMAP hBitmap = LoadBitmap(hInstance, MAKEINTRESOURCE(IDB_ORDNER));
    //Bitmap auf Button bringen
    m_dir.SetBitmap(hBitmap);
	m_dir2.SetBitmap(hBitmap);

	projektopt = GetDocument()-&gt;GetOptionen();
	static_cast&lt;CEdit*&gt;(GetDlgItem(IDC_PFAD))-&gt;SetWindowText(projektopt-&gt;Getcodepfad().c_str());
	m_dateipfad = projektopt-&gt;Getdateipfad().c_str();
	if(projektopt-&gt;Getklammer())
	{
		((CButton*)GetDlgItem(IDC_RADIO1))-&gt;SetCheck(true);
		((CButton*)GetDlgItem(IDC_RADIO2))-&gt;SetCheck(false);
	//	OnRadio1();
	}
	else
	{
		((CButton*)GetDlgItem(IDC_RADIO2))-&gt;SetCheck(true);
		((CButton*)GetDlgItem(IDC_RADIO1))-&gt;SetCheck(false);
	}
	UpdateData(false);
</code></pre>
<p>Devil</p>
]]></description><link>https://www.c-plusplus.net/forum/post/538307</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/538307</guid><dc:creator><![CDATA[phlox81]]></dc:creator><pubDate>Fri, 11 Jun 2004 20:16:56 GMT</pubDate></item></channel></rss>