<?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: MFC forms and selecting points in ObjectARX Forum</title>
    <link>https://forums.autodesk.com/t5/objectarx-forum/mfc-forms-and-selecting-points/m-p/945855#M32195</link>
    <description>Thanks for the info I didn't know that.

"Tony Tanzillo" &lt;TONY.TANZILLO at="" caddzone="" dot="" com=""&gt; wrote in message
news:402194e4$1_3@newsprd01...
&amp;gt; "Gary D. Glass" &lt;GGLASS1&gt; wrote in message
news:402181e4$1_1@newsprd01...
&amp;gt;
&amp;gt; &amp;gt; the thing I like the most about doing this is the
&amp;gt; &amp;gt; created dialog box has the AutoCAD icon on the top left
&amp;gt; &amp;gt; making the dialog box look like an actual AutoCAD dialog box.
&amp;gt;
&amp;gt; Of course, you can do that with just about any ole CDialog:
&amp;gt;
&amp;gt;   CWnd::SetIcon(GetClassLong(adsw_AcadMainWnd(), GCL_HICON), true);
&amp;gt;
&amp;gt;
&amp;gt;
&amp;gt; -- 
&amp;gt; Copyright (c)2004  Tony Tanzillo
&amp;gt; Unauthorized reproduction expressly prohibited.
&amp;gt;
&amp;gt; AcadXTabs: MDI Document Tabs for AutoCAD
&amp;gt; http://www.acadxtabs.com
&amp;gt;
&amp;gt; &amp;gt;
&amp;gt; &amp;gt;
&amp;gt; &amp;gt; "Rob Thyen" &lt;ROBTHYEN&gt; wrote in message
&amp;gt; &amp;gt; news:40216717_1@newsprd01...
&amp;gt; &amp;gt; &amp;gt; can somebody give an example of how to change over to a CAcUiDialog
&amp;gt; &amp;gt; &amp;gt; lass  -- what all will I need to change??
&amp;gt; &amp;gt; &amp;gt;
&amp;gt; &amp;gt; &amp;gt;
&amp;gt; &amp;gt; &amp;gt; "Randy Sanders" &lt;RAN7DY7S&gt; wrote in message
&amp;gt; &amp;gt; &amp;gt; news:40215b87$1_1@newsprd01...
&amp;gt; &amp;gt; &amp;gt; &amp;gt; In order to use the BeginEditorCommand and others as specified, you
have
&amp;gt; &amp;gt; &amp;gt; to
&amp;gt; &amp;gt; &amp;gt; &amp;gt; change your dialog to derive off of CAcUiDialog instead of CDialog
&amp;gt; &amp;gt; &amp;gt; &amp;gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt;
&amp;gt; &amp;gt; &amp;gt;
&amp;gt; &amp;gt; &amp;gt;
&amp;gt; &amp;gt;
&amp;gt; &amp;gt;
&amp;gt;
&amp;gt;&lt;/RAN7DY7S&gt;&lt;/ROBTHYEN&gt;&lt;/GGLASS1&gt;&lt;/TONY.TANZILLO&gt;</description>
    <pubDate>Thu, 05 Feb 2004 01:02:15 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2004-02-05T01:02:15Z</dc:date>
    <item>
      <title>MFC forms and selecting points</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/mfc-forms-and-selecting-points/m-p/945845#M32185</link>
      <description>I have a button on a MFC form that allows a user to pick a point.  When the
button is clicked Autocad minimizes and locks up.  The prompt asking the
user to select a point is displayed.  The code I am using is below. Is there
a different way to do this?

void CTestDlg::OnBnClickedStartpoint()
{
     int rc;
     AcGePoint3d startpt,p;

    startpt.x=0;
    startpt.z=0;
    startpt.y=0;

    ShowWindow(0);

    rc = acedGetPoint(startpt,pMessage, p);

    if (rc == RTNONE)
    {
        rc = RTNORM;
        ShowWindow(1);
        return;
    }

    ShowWindow(1);
}</description>
      <pubDate>Wed, 04 Feb 2004 17:31:15 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/mfc-forms-and-selecting-points/m-p/945845#M32185</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2004-02-04T17:31:15Z</dc:date>
    </item>
    <item>
      <title>Re: MFC forms and selecting points</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/mfc-forms-and-selecting-points/m-p/945846#M32186</link>
      <description>Try using these functions

BeginEditorCommand();
CompleteEditorCommand();
CancelEditorCommand();


"Rob Thyen" &lt;ROBTHYEN&gt; wrote in message
news:40213a45$1_3@newsprd01...
&amp;gt; I have a button on a MFC form that allows a user to pick a point.  When
the
&amp;gt; button is clicked Autocad minimizes and locks up.  The prompt asking the
&amp;gt; user to select a point is displayed.  The code I am using is below. Is
there
&amp;gt; a different way to do this?
&amp;gt;
&amp;gt; void CTestDlg::OnBnClickedStartpoint()
&amp;gt; {
&amp;gt;      int rc;
&amp;gt;      AcGePoint3d startpt,p;
&amp;gt;
&amp;gt;     startpt.x=0;
&amp;gt;     startpt.z=0;
&amp;gt;     startpt.y=0;
&amp;gt;
&amp;gt;     ShowWindow(0);
&amp;gt;
&amp;gt;     rc = acedGetPoint(startpt,pMessage, p);
&amp;gt;
&amp;gt;     if (rc == RTNONE)
&amp;gt;     {
&amp;gt;         rc = RTNORM;
&amp;gt;         ShowWindow(1);
&amp;gt;         return;
&amp;gt;     }
&amp;gt;
&amp;gt;     ShowWindow(1);
&amp;gt; }
&amp;gt;
&amp;gt;&lt;/ROBTHYEN&gt;</description>
      <pubDate>Wed, 04 Feb 2004 20:05:28 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/mfc-forms-and-selecting-points/m-p/945846#M32186</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2004-02-04T20:05:28Z</dc:date>
    </item>
    <item>
      <title>Re: MFC forms and selecting points</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/mfc-forms-and-selecting-points/m-p/945847#M32187</link>
      <description>Instead of  'ShowWindow(0);' call:
BeginEditorCommand();

and instead of 'ShowWindow(1);' call:
CompleteEditorCommand();

Hope it works for you!

"Rob Thyen" &lt;ROBTHYEN&gt; wrote in message
news:40213a45$1_3@newsprd01...
&amp;gt; I have a button on a MFC form that allows a user to pick a point.  When
the
&amp;gt; button is clicked Autocad minimizes and locks up.  The prompt asking the
&amp;gt; user to select a point is displayed.  The code I am using is below. Is
there
&amp;gt; a different way to do this?
&amp;gt;
&amp;gt; void CTestDlg::OnBnClickedStartpoint()
&amp;gt; {
&amp;gt;      int rc;
&amp;gt;      AcGePoint3d startpt,p;
&amp;gt;
&amp;gt;     startpt.x=0;
&amp;gt;     startpt.z=0;
&amp;gt;     startpt.y=0;
&amp;gt;
&amp;gt;     ShowWindow(0);
&amp;gt;
&amp;gt;     rc = acedGetPoint(startpt,pMessage, p);
&amp;gt;
&amp;gt;     if (rc == RTNONE)
&amp;gt;     {
&amp;gt;         rc = RTNORM;
&amp;gt;         ShowWindow(1);
&amp;gt;         return;
&amp;gt;     }
&amp;gt;
&amp;gt;     ShowWindow(1);
&amp;gt; }
&amp;gt;
&amp;gt;&lt;/ROBTHYEN&gt;</description>
      <pubDate>Wed, 04 Feb 2004 20:23:58 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/mfc-forms-and-selecting-points/m-p/945847#M32187</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2004-02-04T20:23:58Z</dc:date>
    </item>
    <item>
      <title>Re: MFC forms and selecting points</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/mfc-forms-and-selecting-points/m-p/945848#M32188</link>
      <description>In order to use the BeginEditorCommand and others as specified, you have to
change your dialog to derive off of CAcUiDialog instead of CDialog</description>
      <pubDate>Wed, 04 Feb 2004 20:50:30 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/mfc-forms-and-selecting-points/m-p/945848#M32188</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2004-02-04T20:50:30Z</dc:date>
    </item>
    <item>
      <title>Re: MFC forms and selecting points</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/mfc-forms-and-selecting-points/m-p/945849#M32189</link>
      <description>can somebody give an example of how to change over to a CAcUiDialog
lass  -- what all will I need to change??


"Randy Sanders" &lt;RAN7DY7S&gt; wrote in message
news:40215b87$1_1@newsprd01...
&amp;gt; In order to use the BeginEditorCommand and others as specified, you have
to
&amp;gt; change your dialog to derive off of CAcUiDialog instead of CDialog
&amp;gt;
&amp;gt;&lt;/RAN7DY7S&gt;</description>
      <pubDate>Wed, 04 Feb 2004 20:50:30 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/mfc-forms-and-selecting-points/m-p/945849#M32189</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2004-02-04T20:50:30Z</dc:date>
    </item>
    <item>
      <title>Re: MFC forms and selecting points</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/mfc-forms-and-selecting-points/m-p/945850#M32190</link>
      <description>Rob Thyen wrote:

&amp;gt; can somebody give an example of how to change over to a CAcUiDialog
&amp;gt; lass  -- what all will I need to change??
&amp;gt; 

If you'd rather not derive from CAcUiDialog (personally I see no 
compelling reason to do so) you can use the following from your dialog

     GetParent()-&amp;gt;EnableWindow(TRUE);
     ShowWindow(SW_HIDE);
     // do your thing on screen
     ShowWindow(SW_SHOW);
     GetParent()-&amp;gt;EnableWindow(FALSE);
     EnableWindow(TRUE);

-- 
Best regards,

   Byron Blattel
   CADwerx--Applications for AutoCAD
   Autodesk Registered Developer
   Contact Info @ http://www.cadwerx.net
   Custom Programming Services - ObjectARX/C++/MFC/ASP/STL/ATL/ISAPI...</description>
      <pubDate>Wed, 04 Feb 2004 21:41:08 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/mfc-forms-and-selecting-points/m-p/945850#M32190</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2004-02-04T21:41:08Z</dc:date>
    </item>
    <item>
      <title>Re: MFC forms and selecting points</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/mfc-forms-and-selecting-points/m-p/945851#M32191</link>
      <description>Thanks Byron, that worked as usual...Is there anything you dont know about
this stuff???

Thanks again,

Rob


"Byron Blattel" &lt;BYRONATCADWERXDOTNET&gt; wrote in message
news:4021684e$1_3@newsprd01...
&amp;gt; Rob Thyen wrote:
&amp;gt;
&amp;gt; &amp;gt; can somebody give an example of how to change over to a CAcUiDialog
&amp;gt; &amp;gt; lass  -- what all will I need to change??
&amp;gt; &amp;gt;
&amp;gt;
&amp;gt; If you'd rather not derive from CAcUiDialog (personally I see no
&amp;gt; compelling reason to do so) you can use the following from your dialog
&amp;gt;
&amp;gt;      GetParent()-&amp;gt;EnableWindow(TRUE);
&amp;gt;      ShowWindow(SW_HIDE);
&amp;gt;      // do your thing on screen
&amp;gt;      ShowWindow(SW_SHOW);
&amp;gt;      GetParent()-&amp;gt;EnableWindow(FALSE);
&amp;gt;      EnableWindow(TRUE);
&amp;gt;
&amp;gt; -- 
&amp;gt; Best regards,
&amp;gt;
&amp;gt;    Byron Blattel
&amp;gt;    CADwerx--Applications for AutoCAD
&amp;gt;    Autodesk Registered Developer
&amp;gt;    Contact Info @ http://www.cadwerx.net
&amp;gt;    Custom Programming Services - ObjectARX/C++/MFC/ASP/STL/ATL/ISAPI...&lt;/BYRONATCADWERXDOTNET&gt;</description>
      <pubDate>Wed, 04 Feb 2004 21:41:08 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/mfc-forms-and-selecting-points/m-p/945851#M32191</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2004-02-04T21:41:08Z</dc:date>
    </item>
    <item>
      <title>Re: MFC forms and selecting points</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/mfc-forms-and-selecting-points/m-p/945852#M32192</link>
      <description>Rob Thyen wrote:

&amp;gt; Thanks Byron, that worked as usual...Is there anything you dont know about
&amp;gt; this stuff???
&amp;gt; 
&amp;gt; Thanks again,
&amp;gt; 
&amp;gt; Rob

Absolutely, but I'm working on the list ;)

-- 
Best regards,

   Byron Blattel
   CADwerx--Applications for AutoCAD
   Autodesk Registered Developer
   Contact Info @ http://www.cadwerx.net
   Custom Programming Services - ObjectARX/C++/MFC/ASP/STL/ATL/ISAPI...</description>
      <pubDate>Wed, 04 Feb 2004 22:19:59 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/mfc-forms-and-selecting-points/m-p/945852#M32192</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2004-02-04T22:19:59Z</dc:date>
    </item>
    <item>
      <title>Re: MFC forms and selecting points</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/mfc-forms-and-selecting-points/m-p/945853#M32193</link>
      <description>If you ever want to change from CDialog to CAcUiDialog dialog class do the
following:

#include "acuiDialog.h" and change all instances from CDialog to CAcUiDialog
in the .h and .cpp file, the thing I like the most about doing this is the
created dialog box has the AutoCAD icon on the top left making the dialog
box look like an actual AutoCAD dialog box.


"Rob Thyen" &lt;ROBTHYEN&gt; wrote in message
news:40216717_1@newsprd01...
&amp;gt; can somebody give an example of how to change over to a CAcUiDialog
&amp;gt; lass  -- what all will I need to change??
&amp;gt;
&amp;gt;
&amp;gt; "Randy Sanders" &lt;RAN7DY7S&gt; wrote in message
&amp;gt; news:40215b87$1_1@newsprd01...
&amp;gt; &amp;gt; In order to use the BeginEditorCommand and others as specified, you have
&amp;gt; to
&amp;gt; &amp;gt; change your dialog to derive off of CAcUiDialog instead of CDialog
&amp;gt; &amp;gt;
&amp;gt; &amp;gt;
&amp;gt;
&amp;gt;&lt;/RAN7DY7S&gt;&lt;/ROBTHYEN&gt;</description>
      <pubDate>Wed, 04 Feb 2004 23:36:03 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/mfc-forms-and-selecting-points/m-p/945853#M32193</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2004-02-04T23:36:03Z</dc:date>
    </item>
    <item>
      <title>Re: MFC forms and selecting points</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/mfc-forms-and-selecting-points/m-p/945854#M32194</link>
      <description>"Gary D. Glass" &lt;GGLASS1&gt; wrote in message news:402181e4$1_1@newsprd01...

&amp;gt; the thing I like the most about doing this is the
&amp;gt; created dialog box has the AutoCAD icon on the top left
&amp;gt; making the dialog box look like an actual AutoCAD dialog box.

Of course, you can do that with just about any ole CDialog:

  CWnd::SetIcon(GetClassLong(adsw_AcadMainWnd(), GCL_HICON), true);



-- 
Copyright (c)2004  Tony Tanzillo
Unauthorized reproduction expressly prohibited.

AcadXTabs: MDI Document Tabs for AutoCAD
http://www.acadxtabs.com

&amp;gt;
&amp;gt;
&amp;gt; "Rob Thyen" &lt;ROBTHYEN&gt; wrote in message
&amp;gt; news:40216717_1@newsprd01...
&amp;gt; &amp;gt; can somebody give an example of how to change over to a CAcUiDialog
&amp;gt; &amp;gt; lass  -- what all will I need to change??
&amp;gt; &amp;gt;
&amp;gt; &amp;gt;
&amp;gt; &amp;gt; "Randy Sanders" &lt;RAN7DY7S&gt; wrote in message
&amp;gt; &amp;gt; news:40215b87$1_1@newsprd01...
&amp;gt; &amp;gt; &amp;gt; In order to use the BeginEditorCommand and others as specified, you have
&amp;gt; &amp;gt; to
&amp;gt; &amp;gt; &amp;gt; change your dialog to derive off of CAcUiDialog instead of CDialog
&amp;gt; &amp;gt; &amp;gt;
&amp;gt; &amp;gt; &amp;gt;
&amp;gt; &amp;gt;
&amp;gt; &amp;gt;
&amp;gt;
&amp;gt;&lt;/RAN7DY7S&gt;&lt;/ROBTHYEN&gt;&lt;/GGLASS1&gt;</description>
      <pubDate>Thu, 05 Feb 2004 00:58:16 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/mfc-forms-and-selecting-points/m-p/945854#M32194</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2004-02-05T00:58:16Z</dc:date>
    </item>
    <item>
      <title>Re: MFC forms and selecting points</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/mfc-forms-and-selecting-points/m-p/945855#M32195</link>
      <description>Thanks for the info I didn't know that.

"Tony Tanzillo" &lt;TONY.TANZILLO at="" caddzone="" dot="" com=""&gt; wrote in message
news:402194e4$1_3@newsprd01...
&amp;gt; "Gary D. Glass" &lt;GGLASS1&gt; wrote in message
news:402181e4$1_1@newsprd01...
&amp;gt;
&amp;gt; &amp;gt; the thing I like the most about doing this is the
&amp;gt; &amp;gt; created dialog box has the AutoCAD icon on the top left
&amp;gt; &amp;gt; making the dialog box look like an actual AutoCAD dialog box.
&amp;gt;
&amp;gt; Of course, you can do that with just about any ole CDialog:
&amp;gt;
&amp;gt;   CWnd::SetIcon(GetClassLong(adsw_AcadMainWnd(), GCL_HICON), true);
&amp;gt;
&amp;gt;
&amp;gt;
&amp;gt; -- 
&amp;gt; Copyright (c)2004  Tony Tanzillo
&amp;gt; Unauthorized reproduction expressly prohibited.
&amp;gt;
&amp;gt; AcadXTabs: MDI Document Tabs for AutoCAD
&amp;gt; http://www.acadxtabs.com
&amp;gt;
&amp;gt; &amp;gt;
&amp;gt; &amp;gt;
&amp;gt; &amp;gt; "Rob Thyen" &lt;ROBTHYEN&gt; wrote in message
&amp;gt; &amp;gt; news:40216717_1@newsprd01...
&amp;gt; &amp;gt; &amp;gt; can somebody give an example of how to change over to a CAcUiDialog
&amp;gt; &amp;gt; &amp;gt; lass  -- what all will I need to change??
&amp;gt; &amp;gt; &amp;gt;
&amp;gt; &amp;gt; &amp;gt;
&amp;gt; &amp;gt; &amp;gt; "Randy Sanders" &lt;RAN7DY7S&gt; wrote in message
&amp;gt; &amp;gt; &amp;gt; news:40215b87$1_1@newsprd01...
&amp;gt; &amp;gt; &amp;gt; &amp;gt; In order to use the BeginEditorCommand and others as specified, you
have
&amp;gt; &amp;gt; &amp;gt; to
&amp;gt; &amp;gt; &amp;gt; &amp;gt; change your dialog to derive off of CAcUiDialog instead of CDialog
&amp;gt; &amp;gt; &amp;gt; &amp;gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt;
&amp;gt; &amp;gt; &amp;gt;
&amp;gt; &amp;gt; &amp;gt;
&amp;gt; &amp;gt;
&amp;gt; &amp;gt;
&amp;gt;
&amp;gt;&lt;/RAN7DY7S&gt;&lt;/ROBTHYEN&gt;&lt;/GGLASS1&gt;&lt;/TONY.TANZILLO&gt;</description>
      <pubDate>Thu, 05 Feb 2004 01:02:15 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/mfc-forms-and-selecting-points/m-p/945855#M32195</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2004-02-05T01:02:15Z</dc:date>
    </item>
    <item>
      <title>Re: MFC forms and selecting points</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/mfc-forms-and-selecting-points/m-p/945856#M32196</link>
      <description>In your Dialog .h file replace

class MyDialog : public CDialog
{
    blahblahblah
}

with

class MyDialog : public CAcUiDialog

{
    blahblahblah
}

Priit Peipman</description>
      <pubDate>Thu, 05 Feb 2004 10:33:13 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/mfc-forms-and-selecting-points/m-p/945856#M32196</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2004-02-05T10:33:13Z</dc:date>
    </item>
    <item>
      <title>Re: MFC forms and selecting points</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/mfc-forms-and-selecting-points/m-p/945857#M32197</link>
      <description>Forgot something.... in cpp file constructor function should be:

MyDialog::MyDialog(CWnd* pParent /*=NULL*/) : CAcUiDialog(MyDialog::IDD,
pParent)

Priit Peipman

"Priit Peipman" &lt;PRIIT&gt; wrote in message
news:40221ba3$1_3@newsprd01...
&amp;gt; In your Dialog .h file replace
&amp;gt;
&amp;gt; class MyDialog : public CDialog
&amp;gt; {
&amp;gt;     blahblahblah
&amp;gt; }
&amp;gt;
&amp;gt; with
&amp;gt;
&amp;gt; class MyDialog : public CAcUiDialog
&amp;gt;
&amp;gt; {
&amp;gt;     blahblahblah
&amp;gt; }
&amp;gt;
&amp;gt; Priit Peipman
&amp;gt;
&amp;gt;&lt;/PRIIT&gt;</description>
      <pubDate>Thu, 05 Feb 2004 10:35:10 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/mfc-forms-and-selecting-points/m-p/945857#M32197</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2004-02-05T10:35:10Z</dc:date>
    </item>
    <item>
      <title>Re: MFC forms and selecting points</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/mfc-forms-and-selecting-points/m-p/945858#M32198</link>
      <description>If you didn't figure it out here is a simple Dialog class in this zip file,&lt;BR /&gt;I add the Acad Dlg includes in the stdafx.h file&lt;BR /&gt;&lt;BR /&gt;// AutoCAD MFC Extensions:&lt;BR /&gt;&lt;BR /&gt;#include "adui.h"&lt;BR /&gt;&lt;BR /&gt;#include "acuiComboBox.h"&lt;BR /&gt;&lt;BR /&gt;#include "acuiDialog.h"&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;"Priit Peipman" &amp;lt;priit@ehitus.ee&amp;gt; wrote in message&lt;BR /&gt;news:40221c19_2@newsprd01...&lt;BR /&gt;&amp;gt; Forgot something.... in cpp file constructor function should be:&lt;BR /&gt;&amp;gt;&lt;BR /&gt;&amp;gt; MyDialog::MyDialog(CWnd* pParent /*=NULL*/) : CAcUiDialog(MyDialog::IDD,&lt;BR /&gt;&amp;gt; pParent)&lt;BR /&gt;&amp;gt;&lt;BR /&gt;&amp;gt; Priit Peipman&lt;BR /&gt;&amp;gt;&lt;BR /&gt;&amp;gt; "Priit Peipman" &amp;lt;priit@ehitus.ee&amp;gt; wrote in message&lt;BR /&gt;&amp;gt; news:40221ba3$1_3@newsprd01...&lt;BR /&gt;&amp;gt; &amp;gt; In your Dialog .h file replace&lt;BR /&gt;&amp;gt; &amp;gt;&lt;BR /&gt;&amp;gt; &amp;gt; class MyDialog : public CDialog&lt;BR /&gt;&amp;gt; &amp;gt; {&lt;BR /&gt;&amp;gt; &amp;gt;     blahblahblah&lt;BR /&gt;&amp;gt; &amp;gt; }&lt;BR /&gt;&amp;gt; &amp;gt;&lt;BR /&gt;&amp;gt; &amp;gt; with&lt;BR /&gt;&amp;gt; &amp;gt;&lt;BR /&gt;&amp;gt; &amp;gt; class MyDialog : public CAcUiDialog&lt;BR /&gt;&amp;gt; &amp;gt;&lt;BR /&gt;&amp;gt; &amp;gt; {&lt;BR /&gt;&amp;gt; &amp;gt;     blahblahblah&lt;BR /&gt;&amp;gt; &amp;gt; }&lt;BR /&gt;&amp;gt; &amp;gt;&lt;BR /&gt;&amp;gt; &amp;gt; Priit Peipman&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;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;
Attachment not added (too large): "TestDlg.zip"</description>
      <pubDate>Thu, 05 Feb 2004 18:18:51 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/mfc-forms-and-selecting-points/m-p/945858#M32198</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2004-02-05T18:18:51Z</dc:date>
    </item>
    <item>
      <title>Re: MFC forms and selecting points</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/mfc-forms-and-selecting-points/m-p/945859#M32199</link>
      <description>There are actually several subtle things I like about using CAcUiDialog.
For instance, dialog persistency (size, position, column widths, etc) and
resizing is much simpler than equivalent CDialog implementations.

Tom Stoeckel

"Gary D. Glass" &lt;GGLASS1&gt; wrote in message
news:402181e4$1_1@newsprd01...
&amp;gt; If you ever want to change from CDialog to CAcUiDialog dialog class do the
&amp;gt; following:
&amp;gt;
&amp;gt; #include "acuiDialog.h" and change all instances from CDialog to
CAcUiDialog
&amp;gt; in the .h and .cpp file, the thing I like the most about doing this is the
&amp;gt; created dialog box has the AutoCAD icon on the top left making the dialog
&amp;gt; box look like an actual AutoCAD dialog box.
&amp;gt;
&amp;gt;
&amp;gt; "Rob Thyen" &lt;ROBTHYEN&gt; wrote in message
&amp;gt; news:40216717_1@newsprd01...
&amp;gt; &amp;gt; can somebody give an example of how to change over to a CAcUiDialog
&amp;gt; &amp;gt; lass  -- what all will I need to change??
&amp;gt; &amp;gt;
&amp;gt; &amp;gt;
&amp;gt; &amp;gt; "Randy Sanders" &lt;RAN7DY7S&gt; wrote in message
&amp;gt; &amp;gt; news:40215b87$1_1@newsprd01...
&amp;gt; &amp;gt; &amp;gt; In order to use the BeginEditorCommand and others as specified, you
have
&amp;gt; &amp;gt; to
&amp;gt; &amp;gt; &amp;gt; change your dialog to derive off of CAcUiDialog instead of CDialog
&amp;gt; &amp;gt; &amp;gt;
&amp;gt; &amp;gt; &amp;gt;
&amp;gt; &amp;gt;
&amp;gt; &amp;gt;
&amp;gt;
&amp;gt;&lt;/RAN7DY7S&gt;&lt;/ROBTHYEN&gt;&lt;/GGLASS1&gt;</description>
      <pubDate>Fri, 06 Feb 2004 02:09:58 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/mfc-forms-and-selecting-points/m-p/945859#M32199</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2004-02-06T02:09:58Z</dc:date>
    </item>
  </channel>
</rss>

