<?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: Closing a CAcUiDockControlBar in ObjectARX Forum</title>
    <link>https://forums.autodesk.com/t5/objectarx-forum/closing-a-cacuidockcontrolbar/m-p/312333#M39385</link>
    <description>On Wed, 11 Sep 2002 03:00:38 -0700, Anders M Eriksson&lt;BR /&gt;
&lt;ANDERS.ERIKSSON&gt; wrote:&lt;BR /&gt;
&lt;BR /&gt;
&amp;gt;PROBLEM: The ControlBar will not close!&lt;BR /&gt;
&amp;gt;The OnClosing() will perform but the ControlBar is still open.&lt;BR /&gt;
&amp;gt;Anyone! What am I doing wrong??&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&lt;BR /&gt;
I did solve it! It seems like the OnClosing() must return FALSE to&lt;BR /&gt;
close the window!&lt;BR /&gt;
&lt;BR /&gt;
return CAdUiDockControlBar::OnClosing();&lt;BR /&gt;
solved the problem&lt;BR /&gt;
&lt;BR /&gt;
// Anders&lt;/ANDERS.ERIKSSON&gt;</description>
    <pubDate>Thu, 12 Sep 2002 04:27:02 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2002-09-12T04:27:02Z</dc:date>
    <item>
      <title>Closing a CAcUiDockControlBar</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/closing-a-cacuidockcontrolbar/m-p/312332#M39384</link>
      <description>Hello!&lt;BR /&gt;
&lt;BR /&gt;
I have a CAcUiDockControlBar which I have a CTreeCtrl and a CListCtrl&lt;BR /&gt;
in. I use Create() to create the controlbar.&lt;BR /&gt;
&lt;BR /&gt;
I'm using this to start/create it&lt;BR /&gt;
&lt;BR /&gt;
	extern CODEdit *gpDocBar;&lt;BR /&gt;
	CMDIFrameWnd *pAcadFrame = acedGetAcadFrame();&lt;BR /&gt;
	if (!gpDocBar)&lt;BR /&gt;
	{&lt;BR /&gt;
		gpDocBar = new CODEdit;&lt;BR /&gt;
		CAcModuleResourceOverride resOverride;&lt;BR /&gt;
		const char dlgName[] = "Editering av Objektdata";&lt;BR /&gt;
		gpDocBar-&amp;gt;Create(pAcadFrame, dlgName);&lt;BR /&gt;
		gpDocBar-&amp;gt;EnableDocking(CBRS_ALIGN_ANY);&lt;BR /&gt;
		gpDocBar-&amp;gt;RestoreControlBar();&lt;BR /&gt;
	}&lt;BR /&gt;
    else &lt;BR /&gt;
        pAcadFrame-&amp;gt;ShowControlBar(gpDocBar, TRUE, FALSE);&lt;BR /&gt;
&lt;BR /&gt;
CODEdit is the CAcUiDocControlBar, and is declared global (.at the&lt;BR /&gt;
moment anyway.)&lt;BR /&gt;
&lt;BR /&gt;
with this code the TreeCtrl and the ListCtrl will contain the same&lt;BR /&gt;
values as when I used the gpDocBar last. I don't want this! I want to&lt;BR /&gt;
start with an empty TreeCtrl and an empty ListCtrl everytime I start&lt;BR /&gt;
the controlbar. &lt;BR /&gt;
&lt;BR /&gt;
So I added the OnClosing() method and did a DeleteAllItems() for both&lt;BR /&gt;
the TreeCtrl and the ListCtrl. and then called&lt;BR /&gt;
CAdUiDockControlBar::OnClosing(); like the manual says.&lt;BR /&gt;
&lt;BR /&gt;
PROBLEM: The ControlBar will not close!&lt;BR /&gt;
&lt;BR /&gt;
The OnClosing() will perform but the ControlBar is still open.&lt;BR /&gt;
&lt;BR /&gt;
Anyone! What am I doing wrong??&lt;BR /&gt;
&lt;BR /&gt;
// Anders&lt;BR /&gt;
-- &lt;BR /&gt;
bool CODEdit::OnClosing()&lt;BR /&gt;
{&lt;BR /&gt;
	m_wndTree.DeleteAllItems();&lt;BR /&gt;
	m_wndList-&amp;gt;DeleteAllItems();&lt;BR /&gt;
&lt;BR /&gt;
	CAdUiDockControlBar::OnClosing();&lt;BR /&gt;
&lt;BR /&gt;
	return true;&lt;BR /&gt;
}</description>
      <pubDate>Wed, 11 Sep 2002 02:00:38 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/closing-a-cacuidockcontrolbar/m-p/312332#M39384</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2002-09-11T02:00:38Z</dc:date>
    </item>
    <item>
      <title>Re: Closing a CAcUiDockControlBar</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/closing-a-cacuidockcontrolbar/m-p/312333#M39385</link>
      <description>On Wed, 11 Sep 2002 03:00:38 -0700, Anders M Eriksson&lt;BR /&gt;
&lt;ANDERS.ERIKSSON&gt; wrote:&lt;BR /&gt;
&lt;BR /&gt;
&amp;gt;PROBLEM: The ControlBar will not close!&lt;BR /&gt;
&amp;gt;The OnClosing() will perform but the ControlBar is still open.&lt;BR /&gt;
&amp;gt;Anyone! What am I doing wrong??&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&lt;BR /&gt;
I did solve it! It seems like the OnClosing() must return FALSE to&lt;BR /&gt;
close the window!&lt;BR /&gt;
&lt;BR /&gt;
return CAdUiDockControlBar::OnClosing();&lt;BR /&gt;
solved the problem&lt;BR /&gt;
&lt;BR /&gt;
// Anders&lt;/ANDERS.ERIKSSON&gt;</description>
      <pubDate>Thu, 12 Sep 2002 04:27:02 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/closing-a-cacuidockcontrolbar/m-p/312333#M39385</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2002-09-12T04:27:02Z</dc:date>
    </item>
    <item>
      <title>Re: Closing a CAcUiDockControlBar</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/closing-a-cacuidockcontrolbar/m-p/312334#M39386</link>
      <description>hello!&lt;BR /&gt;
&lt;BR /&gt;
i was wondering how i can have a CTreeCtrl inside a CAcUiDockControlBar. I already have a dockable window...but I need it to contain a Tree Control.</description>
      <pubDate>Thu, 28 Oct 2004 08:47:17 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/closing-a-cacuidockcontrolbar/m-p/312334#M39386</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2004-10-28T08:47:17Z</dc:date>
    </item>
  </channel>
</rss>

