<?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: Dialog with custom control failed! in ObjectARX Forum</title>
    <link>https://forums.autodesk.com/t5/objectarx-forum/dialog-with-custom-control-failed/m-p/2469118#M17740</link>
    <description>Hardly to say anything without piece of code.&lt;BR /&gt;
If it is resource conflict dig CAcModuleResourceOverride class.</description>
    <pubDate>Mon, 20 Apr 2009 06:48:49 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2009-04-20T06:48:49Z</dc:date>
    <item>
      <title>Dialog with custom control failed!</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/dialog-with-custom-control-failed/m-p/2469117#M17739</link>
      <description>Yesterday I failed to add a custom control to a new dialog -- it didn't work and didn't even show up. In debug mode,there was no problem with dialog constructor,but  pDlg-&amp;gt;doModal() was simply skipped and OnInitDialog() was also not called. &lt;BR /&gt;
Then i had a test on an existing dialog, which had being working with no problem, by simply adding a new custom control into it. The same problem occured again. But if i remove the custom control and rebuild it, the dialog works fine!&lt;BR /&gt;
Has anyone tried to add a custom control before? This custom control is a MFC based grid control, and i am using VS 2002.</description>
      <pubDate>Thu, 16 Apr 2009 10:32:39 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/dialog-with-custom-control-failed/m-p/2469117#M17739</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-04-16T10:32:39Z</dc:date>
    </item>
    <item>
      <title>Re: Dialog with custom control failed!</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/dialog-with-custom-control-failed/m-p/2469118#M17740</link>
      <description>Hardly to say anything without piece of code.&lt;BR /&gt;
If it is resource conflict dig CAcModuleResourceOverride class.</description>
      <pubDate>Mon, 20 Apr 2009 06:48:49 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/dialog-with-custom-control-failed/m-p/2469118#M17740</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-04-20T06:48:49Z</dc:date>
    </item>
    <item>
      <title>Re: Dialog with custom control failed!</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/dialog-with-custom-control-failed/m-p/2469119#M17741</link>
      <description>HavalMne:&lt;BR /&gt;
&lt;BR /&gt;
Actually I just had a test on a sample provided in the SDK -- under directory: samples/editor/mfcsamps/modal. It's just an blank dialog with two buttons: OK and Close. I complied it and it works fine. Then i added a custom control from the Toolbox with no modification of the original codes and recompiled it. And as i expected, it failed without OnInitDialog() being called. I spent some time debugging this but no clues were found.</description>
      <pubDate>Wed, 22 Apr 2009 07:02:55 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/dialog-with-custom-control-failed/m-p/2469119#M17741</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-04-22T07:02:55Z</dc:date>
    </item>
    <item>
      <title>Re: Dialog with custom control failed!</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/dialog-with-custom-control-failed/m-p/2469120#M17742</link>
      <description>All my dialogs with usual MFC controls working fine.&lt;BR /&gt;
You must check your code.</description>
      <pubDate>Wed, 22 Apr 2009 07:36:37 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/dialog-with-custom-control-failed/m-p/2469120#M17742</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-04-22T07:36:37Z</dc:date>
    </item>
    <item>
      <title>Re: Dialog with custom control failed!</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/dialog-with-custom-control-failed/m-p/2469121#M17743</link>
      <description>We just ran into this same problem and finally figured out the solution.&lt;BR /&gt;
&lt;BR /&gt;
When you add the custom control to the resource file, you also have to add a member variable to the dialog class. It is not necessary to link this variable to the control--simply having it in the header file is enough to get the dialog to appear.</description>
      <pubDate>Wed, 23 Sep 2009 13:43:56 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/dialog-with-custom-control-failed/m-p/2469121#M17743</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-09-23T13:43:56Z</dc:date>
    </item>
  </channel>
</rss>

