<?xml version="1.0" encoding="utf-8" ?>
<?xml-stylesheet type="text/xsl" href="RSS_xslt_style.asp" version="1.0" ?>
<rss version="2.0" xmlns:WebWizForums="https://syndication.webwiz.net/rss_namespace/">
 <channel>
  <title>Codejock Developer Community : OLE Inplace Menu doesn&#039;t work for MDI applications</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Command Bars : OLE Inplace Menu doesn&#039;t work for MDI applications]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Tue, 09 Jun 2026 08:08:06 +0000</pubDate>
  <lastBuildDate>Wed, 29 Nov 2006 04:56:16 +0000</lastBuildDate>
  <docs>http://blogs.law.harvard.edu/tech/rss</docs>
  <generator>Web Wiz Forums 12.04</generator>
  <ttl>360</ttl>
  <WebWizForums:feedURL>forum.codejock.com/RSS_post_feed.asp?TID=5549</WebWizForums:feedURL>
  <image>
   <title><![CDATA[Codejock Developer Community]]></title>
   <url>http://forum.codejock.com/forum_images/codejock-logo.gif</url>
   <link>http://forum.codejock.com/</link>
  </image>
  <item>
   <title><![CDATA[OLE Inplace Menu doesn&#039;t work for MDI applications : I have removed all my m_pDock.......]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=5549&amp;PID=17746&amp;title=ole-inplace-menu-doesnt-work-for-mdi-applications#17746</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2347">Sergio</a><br /><strong>Subject:</strong> 5549<br /><strong>Posted:</strong> 29 November 2006 at 4:56am<br /><br />I have removed all my m_pDock.... pointers, and converted them into GetDock...() methods.<DIV>&nbsp;</DIV><DIV>Now it's all working fine in all cases !</DIV><DIV>&nbsp;</DIV><DIV>Thanks ! <img src="https://forum.codejock.com/smileys/smiley32.gif" border="0"></DIV><DIV>Best Regards,</DIV>]]>
   </description>
   <pubDate>Wed, 29 Nov 2006 04:56:16 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=5549&amp;PID=17746&amp;title=ole-inplace-menu-doesnt-work-for-mdi-applications#17746</guid>
  </item> 
  <item>
   <title><![CDATA[OLE Inplace Menu doesn&#039;t work for MDI applications : Hi,  Don&amp;#039;t forget that...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=5549&amp;PID=17487&amp;title=ole-inplace-menu-doesnt-work-for-mdi-applications#17487</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 5549<br /><strong>Posted:</strong> 20 November 2006 at 10:37am<br /><br />Hi,<DIV>&nbsp;</DIV><DIV>Don't forget that after each Load call m_pDockingPaneXXX will be not valid also.</DIV><DIV>&nbsp;</DIV><DIV>Instead saving pointers as member, I recommend just use FindPane when you need to get pointer.</DIV>]]>
   </description>
   <pubDate>Mon, 20 Nov 2006 10:37:26 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=5549&amp;PID=17487&amp;title=ole-inplace-menu-doesnt-work-for-mdi-applications#17487</guid>
  </item> 
  <item>
   <title><![CDATA[OLE Inplace Menu doesn&#039;t work for MDI applications : Hello Oleg,  Finally, we managed...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=5549&amp;PID=17484&amp;title=ole-inplace-menu-doesnt-work-for-mdi-applications#17484</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2347">Sergio</a><br /><strong>Subject:</strong> 5549<br /><strong>Posted:</strong> 20 November 2006 at 10:28am<br /><br />Hello Oleg,<DIV>&nbsp;</DIV><DIV>Finally, we managed it differently. Now it works fine, the contents controls seems to keep their state, it's just the pointer to the docking pane that's change.</DIV><DIV>&nbsp;</DIV><DIV>We have made a method that update all the pointers :</DIV><DIV>&nbsp;</DIV><DIV><FONT color=#0000ff size=2><P>void</FONT><FONT size=2> C...MainFrame::UpdateDockingPanesPointers()</P><DIV>{</DIV><P>m_pDockingPaneFolderTreeCtrl = m_paneManager.FindPane( IDC_FOLDERS_TREE );</P><P>m_pDockingPaneFolderContentLog = m_paneManager.FindPane( IDC_LOG );</P><P>m_pDockingPaneFolderContentFolder = m_paneManager.FindPane( IDC_FOLDER );</P><P>m_pDockingPaneFolderContentSearch = m_paneManager.FindPane( IDC_SEARCH );</P><P>m_pDockingPaneFolderContentFinancial = m_paneManager.FindPane( IDC_FINANCIAL_LOG );</P><P>}</P></FONT></DIV><DIV>&nbsp;</DIV><DIV>Thank you for your help, you can mark this topic as closed.</DIV><DIV>&nbsp;</DIV><DIV>Best Regards,</DIV><DIV>&nbsp;</DIV>]]>
   </description>
   <pubDate>Mon, 20 Nov 2006 10:28:26 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=5549&amp;PID=17484&amp;title=ole-inplace-menu-doesnt-work-for-mdi-applications#17484</guid>
  </item> 
  <item>
   <title><![CDATA[OLE Inplace Menu doesn&#039;t work for MDI applications : Hello,  This way is not really...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=5549&amp;PID=17482&amp;title=ole-inplace-menu-doesnt-work-for-mdi-applications#17482</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2347">Sergio</a><br /><strong>Subject:</strong> 5549<br /><strong>Posted:</strong> 20 November 2006 at 10:00am<br /><br />Hello,<DIV>&nbsp;</DIV><DIV>This way is not really suitable for us, as not only the contents of the docking pane is destroyed, but also the docking pane itself and it is recreated using a different pointer.</DIV><DIV>&nbsp;</DIV><DIV>The big problem is that after ending&nbsp;editing In Place, the layout is not restored as it was before, because all the controls have been recreated and the scrollbars, the focus, expanded tabs in tree controls, etc. are not as they were before.</DIV><DIV>&nbsp;</DIV><DIV>Moreover we store a pointer to the docking pane in the OnCreate(...) method of the MainFrame and it is destroyed/changed by Codejock. The docking panes aren't all recreated at the same time (because the creation is made after selecting an hidden docking pane), this causing memory access violation.</DIV><DIV>&nbsp;</DIV><DIV>Why don't you simply detach your docking panes or change parent ? Our docking panes contain logs that are continuously updated.</DIV><DIV>&nbsp;</DIV>]]>
   </description>
   <pubDate>Mon, 20 Nov 2006 10:00:52 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=5549&amp;PID=17482&amp;title=ole-inplace-menu-doesnt-work-for-mdi-applications#17482</guid>
  </item> 
  <item>
   <title><![CDATA[OLE Inplace Menu doesn&#039;t work for MDI applications : Hello, You must call Attach in...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=5549&amp;PID=17470&amp;title=ole-inplace-menu-doesnt-work-for-mdi-applications#17470</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 5549<br /><strong>Posted:</strong> 20 November 2006 at 6:37am<br /><br />Hello,<DIV>You must call Attach in OnDockingPaneNotify method.</DIV>]]>
   </description>
   <pubDate>Mon, 20 Nov 2006 06:37:38 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=5549&amp;PID=17470&amp;title=ole-inplace-menu-doesnt-work-for-mdi-applications#17470</guid>
  </item> 
  <item>
   <title><![CDATA[OLE Inplace Menu doesn&#039;t work for MDI applications : Try it, just paste the following...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=5549&amp;PID=17467&amp;title=ole-inplace-menu-doesnt-work-for-mdi-applications#17467</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2347">Sergio</a><br /><strong>Subject:</strong> 5549<br /><strong>Posted:</strong> 20 November 2006 at 6:01am<br /><br /><P>Try it, just paste the following code to the end of the method <FONT size=2>CMainFrame::OnCreate</FONT>(...) of your Draw Client sample :</P><DIV></DIV><FONT size=2><FONT size=2><P>CXTPDockingPane* pPaneLog = m_paneManager.CreatePane( 10, CRect( 0, 0, 200, 200 ), xtpPaneDockBottom );</P><DIV></FONT><FONT color=#0000ff size=2>static</FONT><FONT size=2> CEdit edit;</DIV><P>edit.Create( WS_CHILD | WS_VISIBLE, CRect(0,0,1,1), </FONT><FONT color=#0000ff size=2>this</FONT><FONT size=2>, 100 );</P><P>edit.SetWindowText( _T("Text Edit Contents !") );</P><P>pPaneLog-&gt;Attach( &amp;edit );</P><P>pPaneLog-&gt;SetTitle( _T("Hello World") );</P><P>m_paneManager.ToggleDocking( pPaneLog );</P><DIV></DIV><DIV></DIV><DIV>&nbsp;</DIV><DIV>Now, launch the sample, and insert an OLE item, start editing In Place, and leave editing. You will see that the undocked pane is now empty !!!</DIV><DIV>&nbsp;</DIV><DIV>Please help us !</DIV></FONT></FONT>]]>
   </description>
   <pubDate>Mon, 20 Nov 2006 06:01:52 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=5549&amp;PID=17467&amp;title=ole-inplace-menu-doesnt-work-for-mdi-applications#17467</guid>
  </item> 
  <item>
   <title><![CDATA[OLE Inplace Menu doesn&#039;t work for MDI applications : The problem of duplicates doesn&amp;#039;t...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=5549&amp;PID=17466&amp;title=ole-inplace-menu-doesnt-work-for-mdi-applications#17466</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2347">Sergio</a><br /><strong>Subject:</strong> 5549<br /><strong>Posted:</strong> 20 November 2006 at 5:37am<br /><br /><P>The problem of duplicates doesn't occur in my code, it's okay, it occurs only in your sample.</P><DIV>We&nbsp;have integrated the code of your sample, the OLE menu works now fine. But after leaving the In Place edit mode,&nbsp;our custom docking panes (a CWnd* Attached to a CXTPDockingPane through the method <FONT color=#666666><strong>pDockPane-&gt;Attach(pMyWnd)</strong></FONT>) are empty. The attached window seems to have been destroyed, the docking panes&nbsp;are empty.</DIV><DIV>&nbsp;</DIV><DIV>Could you help&nbsp;us ?</DIV><DIV>&nbsp;</DIV>]]>
   </description>
   <pubDate>Mon, 20 Nov 2006 05:37:06 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=5549&amp;PID=17466&amp;title=ole-inplace-menu-doesnt-work-for-mdi-applications#17466</guid>
  </item> 
  <item>
   <title><![CDATA[OLE Inplace Menu doesn&#039;t work for MDI applications : Thank you for your prompt answer,...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=5549&amp;PID=17464&amp;title=ole-inplace-menu-doesnt-work-for-mdi-applications#17464</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2347">Sergio</a><br /><strong>Subject:</strong> 5549<br /><strong>Posted:</strong> 20 November 2006 at 5:21am<br /><br /><DIV>Thank you for your prompt answer, I'm currently looking at the DrawClient sample and changing my code.</DIV><DIV>&nbsp;</DIV><DIV>You sample has a little bug when doing a Print Preview (using the OLE main menu), after having entered and exited a few times from the In Place editing.</DIV><DIV>&nbsp;</DIV><DIV>Here is a Print Screen :</DIV><DIV>&nbsp;</DIV><DIV><img src="http://forum.codejock.com/uploads/20061120_051955_PrintScreen.JPG" border="0"></DIV><DIV>&nbsp;</DIV><DIV>Some buttons in the Main Menu are repeated.</DIV><DIV>&nbsp;</DIV><DIV>Regards,</DIV>]]>
   </description>
   <pubDate>Mon, 20 Nov 2006 05:21:38 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=5549&amp;PID=17464&amp;title=ole-inplace-menu-doesnt-work-for-mdi-applications#17464</guid>
  </item> 
  <item>
   <title><![CDATA[OLE Inplace Menu doesn&#039;t work for MDI applications : Hello, See code of void CDraw...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=5549&amp;PID=17427&amp;title=ole-inplace-menu-doesnt-work-for-mdi-applications#17427</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 5549<br /><strong>Posted:</strong> 18 November 2006 at 3:04am<br /><br />Hello,<DIV>See code of void CDrawItem::ActiveStateChanged(BOOL bActive)</DIV><DIV>in DrawClient sample.</DIV>]]>
   </description>
   <pubDate>Sat, 18 Nov 2006 03:04:57 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=5549&amp;PID=17427&amp;title=ole-inplace-menu-doesnt-work-for-mdi-applications#17427</guid>
  </item> 
  <item>
   <title><![CDATA[OLE Inplace Menu doesn&#039;t work for MDI applications : Hello,   Your sample MFC (Codejock...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=5549&amp;PID=17419&amp;title=ole-inplace-menu-doesnt-work-for-mdi-applications#17419</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2347">Sergio</a><br /><strong>Subject:</strong> 5549<br /><strong>Posted:</strong> 17 November 2006 at 10:38am<br /><br /><FONT size=2>Hello, </FONT><DIV><FONT size=2>&nbsp;</FONT></DIV><DIV><FONT size=2>Your sample MFC <FONT color=#999999>(Codejock TookKit Pro Version 10.3.1) </FONT><FONT color=#000000>Command Bars Samples -&nbsp;<strong>Smart Layout, doesn't work with OLE Inplace editing</strong>.</FONT></FONT></DIV><DIV><FONT size=2>&nbsp;</FONT></DIV><DIV><FONT size=2>To produce this bug : Launch your sample and drag'n'drop a MS Word .DOC document inside of the text editor. Now double-clic on the newly inserted OLE element, you won't see the OLE menu of MS Word.</FONT></DIV><DIV><FONT size=2>&nbsp;</FONT></DIV><DIV><FONT size=2>Your sample User Interface Samples - Office 2003 GUI works fine.</FONT></DIV><DIV><FONT size=2>&nbsp;</FONT></DIV><DIV><FONT size=2>The main difference between these two applications is that the first one is a MDI based frame and the second one is a SDI.</FONT></DIV><DIV><FONT size=2>&nbsp;</FONT></DIV><DIV><FONT size=2>Could you please help&nbsp;us to solve this issue, as we have the same problem in our application. What should we change to make it working ?</FONT></DIV><DIV><FONT size=2>&nbsp;</FONT></DIV><DIV><FONT size=2>Thank you in advance !</FONT></DIV><DIV><FONT size=2>Regards,</FONT></DIV>]]>
   </description>
   <pubDate>Fri, 17 Nov 2006 10:38:30 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=5549&amp;PID=17419&amp;title=ole-inplace-menu-doesnt-work-for-mdi-applications#17419</guid>
  </item> 
 </channel>
</rss>