<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: ARX MFC in ObjectARX Forum</title>
    <link>https://forums.autodesk.com/t5/objectarx-forum/arx-mfc/m-p/320797#M35678</link>
    <description>&amp;gt; I want to populate the values.. but they are not initializing:&lt;BR /&gt;
&lt;BR /&gt;
  You can't set properties of controls before their windows have been&lt;BR /&gt;
created.  You'll need to either call CDialog::Create() manually (and handle&lt;BR /&gt;
the dialog as a modeless dialog) before initializing controls, or do your&lt;BR /&gt;
initializing in OnInitDialog().  The latter is simplest in most cases. &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;BR /&gt;
-- &lt;BR /&gt;
Owen Wengerd&lt;BR /&gt;
President, ManuSoft ==&amp;gt; http://www.manusoft.com&lt;BR /&gt;
VP Americas, CADLock, Inc. ==&amp;gt; http://www.cadlock.com</description>
    <pubDate>Tue, 10 Jun 2003 10:20:57 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2003-06-10T10:20:57Z</dc:date>
    <item>
      <title>ARX MFC</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/arx-mfc/m-p/320793#M35674</link>
      <description>I have  a dialog w/ multiple text fields, etc.&lt;BR /&gt;
&lt;BR /&gt;
I want to populate the values.. but they are not initializing:&lt;BR /&gt;
&lt;BR /&gt;
CDlgFixture dlgFixt;&lt;BR /&gt;
dlgFixt.m_strFixtType.SetWindowText(strCkt);  // a CEdit control&lt;BR /&gt;
&lt;BR /&gt;
  dlgFixt.m_cmbFixtureBlock.SetWindowText(temp);  //a CComboBox ctrl&lt;BR /&gt;
&lt;BR /&gt;
 dlgFixt.UpdateData(false) // fails - unsupported operation?&lt;BR /&gt;
&lt;BR /&gt;
  dlgFixt.DoModal();  // shows, but w/o my values initialized.&lt;BR /&gt;
&lt;BR /&gt;
??&lt;BR /&gt;
&lt;BR /&gt;
Thanks,&lt;BR /&gt;
MS</description>
      <pubDate>Tue, 10 Jun 2003 08:11:11 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/arx-mfc/m-p/320793#M35674</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2003-06-10T08:11:11Z</dc:date>
    </item>
    <item>
      <title>Re: ARX MFC</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/arx-mfc/m-p/320794#M35675</link>
      <description>Before declaring your instance of the dialog, add this line of code&lt;BR /&gt;
&lt;BR /&gt;
CAcModuleResourceOverride resover;&lt;BR /&gt;
&lt;BR /&gt;
The proper resources are not set, so the wrong dialog is being used, and&lt;BR /&gt;
that control doesn't exist in that dialog hence the unsupported operation.&lt;BR /&gt;
&lt;BR /&gt;
"Martin Schmid" &lt;MARTINSCHMID&gt; wrote in message&lt;BR /&gt;
news:F31F76A57E657BD58E145917AB9D7791@in.WebX.maYIadrTaRb...&lt;BR /&gt;
&amp;gt; I have  a dialog w/ multiple text fields, etc.&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; I want to populate the values.. but they are not initializing:&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; CDlgFixture dlgFixt;&lt;BR /&gt;
&amp;gt; dlgFixt.m_strFixtType.SetWindowText(strCkt);  // a CEdit control&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt;   dlgFixt.m_cmbFixtureBlock.SetWindowText(temp);  //a CComboBox ctrl&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt;  dlgFixt.UpdateData(false) // fails - unsupported operation?&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt;   dlgFixt.DoModal();  // shows, but w/o my values initialized.&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; ??&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; Thanks,&lt;BR /&gt;
&amp;gt; MS&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt;&lt;/MARTINSCHMID&gt;</description>
      <pubDate>Tue, 10 Jun 2003 08:37:21 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/arx-mfc/m-p/320794#M35675</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2003-06-10T08:37:21Z</dc:date>
    </item>
    <item>
      <title>Re:</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/arx-mfc/m-p/320795#M35676</link>
      <description>Besides that you have to override the resource handle, it might also be the&lt;BR /&gt;
call to&lt;BR /&gt;
UpdateData(FALSE) before DoModal(). Before DoModal the Dialog is not&lt;BR /&gt;
created, so there are no controls accessible.&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
"Randy Sanders" &lt;RAN7DY7S&gt; schrieb im Newsbeitrag&lt;BR /&gt;
news:C642EE78F8386A58B77A63E05333470D@in.WebX.maYIadrTaRb...&lt;BR /&gt;
&amp;gt; Before declaring your instance of the dialog, add this line of code&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; CAcModuleResourceOverride resover;&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; The proper resources are not set, so the wrong dialog is being used, and&lt;BR /&gt;
&amp;gt; that control doesn't exist in that dialog hence the unsupported operation.&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; "Martin Schmid" &lt;MARTINSCHMID&gt; wrote in message&lt;BR /&gt;
&amp;gt; news:F31F76A57E657BD58E145917AB9D7791@in.WebX.maYIadrTaRb...&lt;BR /&gt;
&amp;gt; &amp;gt; I have  a dialog w/ multiple text fields, etc.&lt;BR /&gt;
&amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt; I want to populate the values.. but they are not initializing:&lt;BR /&gt;
&amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt; CDlgFixture dlgFixt;&lt;BR /&gt;
&amp;gt; &amp;gt; dlgFixt.m_strFixtType.SetWindowText(strCkt);  // a CEdit control&lt;BR /&gt;
&amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt;   dlgFixt.m_cmbFixtureBlock.SetWindowText(temp);  //a CComboBox ctrl&lt;BR /&gt;
&amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt;  dlgFixt.UpdateData(false) // fails - unsupported operation?&lt;BR /&gt;
&amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt;   dlgFixt.DoModal();  // shows, but w/o my values initialized.&lt;BR /&gt;
&amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt; ??&lt;BR /&gt;
&amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt; Thanks,&lt;BR /&gt;
&amp;gt; &amp;gt; MS&lt;BR /&gt;
&amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt;&lt;/MARTINSCHMID&gt;&lt;/RAN7DY7S&gt;</description>
      <pubDate>Tue, 10 Jun 2003 09:03:52 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/arx-mfc/m-p/320795#M35676</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2003-06-10T09:03:52Z</dc:date>
    </item>
    <item>
      <title>Re:</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/arx-mfc/m-p/320796#M35677</link>
      <description>It is the later... I need to do my initialization in OnInit, not prior to&lt;BR /&gt;
calling DoModal.&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
"Andreas Mueller" &lt;ANDREAS.B.MUELLER&gt; wrote in message&lt;BR /&gt;
news:2A630CF7F90FCB4B9CEF01AF9D6E0527@in.WebX.maYIadrTaRb...&lt;BR /&gt;
&amp;gt; Besides that you have to override the resource handle, it might also be&lt;BR /&gt;
the&lt;BR /&gt;
&amp;gt; call to&lt;BR /&gt;
&amp;gt; UpdateData(FALSE) before DoModal(). Before DoModal the Dialog is not&lt;BR /&gt;
&amp;gt; created, so there are no controls accessible.&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; "Randy Sanders" &lt;RAN7DY7S&gt; schrieb im Newsbeitrag&lt;BR /&gt;
&amp;gt; news:C642EE78F8386A58B77A63E05333470D@in.WebX.maYIadrTaRb...&lt;BR /&gt;
&amp;gt; &amp;gt; Before declaring your instance of the dialog, add this line of code&lt;BR /&gt;
&amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt; CAcModuleResourceOverride resover;&lt;BR /&gt;
&amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt; The proper resources are not set, so the wrong dialog is being used, and&lt;BR /&gt;
&amp;gt; &amp;gt; that control doesn't exist in that dialog hence the unsupported&lt;BR /&gt;
operation.&lt;BR /&gt;
&amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt; "Martin Schmid" &lt;MARTINSCHMID&gt; wrote in message&lt;BR /&gt;
&amp;gt; &amp;gt; news:F31F76A57E657BD58E145917AB9D7791@in.WebX.maYIadrTaRb...&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; I have  a dialog w/ multiple text fields, etc.&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; I want to populate the values.. but they are not initializing:&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; CDlgFixture dlgFixt;&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; dlgFixt.m_strFixtType.SetWindowText(strCkt);  // a CEdit control&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt;   dlgFixt.m_cmbFixtureBlock.SetWindowText(temp);  //a CComboBox ctrl&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt;  dlgFixt.UpdateData(false) // fails - unsupported operation?&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt;   dlgFixt.DoModal();  // shows, but w/o my values initialized.&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; ??&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; Thanks,&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; MS&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt;&lt;/MARTINSCHMID&gt;&lt;/RAN7DY7S&gt;&lt;/ANDREAS.B.MUELLER&gt;</description>
      <pubDate>Tue, 10 Jun 2003 10:18:27 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/arx-mfc/m-p/320796#M35677</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2003-06-10T10:18:27Z</dc:date>
    </item>
    <item>
      <title>Re: ARX MFC</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/arx-mfc/m-p/320797#M35678</link>
      <description>&amp;gt; I want to populate the values.. but they are not initializing:&lt;BR /&gt;
&lt;BR /&gt;
  You can't set properties of controls before their windows have been&lt;BR /&gt;
created.  You'll need to either call CDialog::Create() manually (and handle&lt;BR /&gt;
the dialog as a modeless dialog) before initializing controls, or do your&lt;BR /&gt;
initializing in OnInitDialog().  The latter is simplest in most cases. &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;BR /&gt;
-- &lt;BR /&gt;
Owen Wengerd&lt;BR /&gt;
President, ManuSoft ==&amp;gt; http://www.manusoft.com&lt;BR /&gt;
VP Americas, CADLock, Inc. ==&amp;gt; http://www.cadlock.com</description>
      <pubDate>Tue, 10 Jun 2003 10:20:57 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/arx-mfc/m-p/320797#M35678</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2003-06-10T10:20:57Z</dc:date>
    </item>
  </channel>
</rss>

