<?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 : LoadDesignerBars</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Toolkit Pro : LoadDesignerBars]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Fri, 17 Apr 2026 20:54:51 +0000</pubDate>
  <lastBuildDate>Thu, 22 Apr 2004 14:26:35 +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=638</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[LoadDesignerBars : Does that help us figure out what...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=638&amp;PID=1698&amp;title=loaddesignerbars#1698</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=203">Ark42</a><br /><strong>Subject:</strong> 638<br /><strong>Posted:</strong> 22 April 2004 at 2:26pm<br /><br />Does that help us figure out what is safe to cast to what? It seemslike more bloat to MFC to be calling a lot of functions for simplethings sometimes. <br>Plus those are both UPcasts not DOWNcasts, right?<br><br>]]>
   </description>
   <pubDate>Thu, 22 Apr 2004 14:26:35 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=638&amp;PID=1698&amp;title=loaddesignerbars#1698</guid>
  </item> 
  <item>
   <title><![CDATA[LoadDesignerBars : the better use MFC macros DYNA...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=638&amp;PID=1696&amp;title=loaddesignerbars#1696</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 638<br /><strong>Posted:</strong> 22 April 2004 at 2:23pm<br /><br />the better use MFC macros DYNAMIC_DOWNCAST(CXTPControlPopup, ..)]]>
   </description>
   <pubDate>Thu, 22 Apr 2004 14:23:11 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=638&amp;PID=1696&amp;title=loaddesignerbars#1696</guid>
  </item> 
  <item>
   <title><![CDATA[LoadDesignerBars :  Note for other forum readers,...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=638&amp;PID=1695&amp;title=loaddesignerbars#1695</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=203">Ark42</a><br /><strong>Subject:</strong> 638<br /><strong>Posted:</strong> 22 April 2004 at 12:11pm<br /><br /><br>Note for other forum readers, I got most of these problems solved via email.<br><br>If you add the code:<br>&nbsp;&nbsp;&nbsp; UINT nIDMenuBarIcons&#091;&#093; = {SC_RESTORE, SC_MINIMIZE, SC_MAXIMIZE, SC_CLOSE}; <br>&nbsp;&nbsp;&nbsp; XTPImageManager()-&gt;SetIcons(XTP_IDB_MENUBAR_ICONS, nIDMenuBarIcons, 4, CSize(16, 16));<br>It will add the 4 icons back to the MDI menu properly.<br><br>The "import" button in designer really means "Export" -- you can haveit create a .h file of #defines for you. The only proboblem I see issome overlap of defines already defined, so I just #include that .hright after resource.h with a few #undef's between the two in order tofix compiler warnings about things like ID_EDIT_COPY being redefinedwith the same value.<br><br>Also, for people wondering how to create popup context menus with thedesigner, you add them to your menu bar, then add the list of menuitems to them in the designer, then remove the popup from the menu bar.The instance in the controls pane will remember all the items added.<br>In order to display the popup, you do something like:<br>&nbsp;&nbsp;&nbsp; CXTPCommandBars *pCommandBars = static_cast&lt;CXTPMDIFrameWnd *&gt;(AfxGetMainWnd())-&gt;GetCommandBars();<br>&nbsp;&nbsp;&nbsp; CXTPControlPopup *pControlPopup  =reinterpret_cast&lt;CXTPControlPopup*&gt;(pCommandBars- &gt;m_pDesignerControls-&gt;FindControl(IDR_POPUPMENUID)); <br>&nbsp;&nbsp;&nbsp; CXTPPopupBar *pPopupBar = reinterpret_cast&lt;CXTPPopupBar *&gt;(pControlPopup-&gt;GetCommandBar());<br>&nbsp;&nbsp;&nbsp; CXTPCommandBars::TrackPopupMenu(pPopupBar, TPM_LEFTALIGN | TPM_RIGHTBUTTON, point.x, point.y, this);<br><br>That is the hard part, since while documentation is only as helpful ascrawling through the headers yourself, neither is going to tell youwhen its safe to upcast thigs such as those two reinterpret_cast's thatare upcasting a CXTPControl to a CXTPControlPopup, or a CXTPCommandBarto a CXTPPopupBar.&nbsp; I'm sure not every CXTPControl can be safelycast to a CXTPControlPopup, since CXTPControlPopup is derived fromCXTPControl, but in this case I know its safe.<br><br>Thanks Oleg!<br><br>]]>
   </description>
   <pubDate>Thu, 22 Apr 2004 12:11:51 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=638&amp;PID=1695&amp;title=loaddesignerbars#1695</guid>
  </item> 
  <item>
   <title><![CDATA[LoadDesignerBars :  ... and a bug, I think:  If...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=638&amp;PID=1680&amp;title=loaddesignerbars#1680</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=203">Ark42</a><br /><strong>Subject:</strong> 638<br /><strong>Posted:</strong> 19 April 2004 at 8:56pm<br /><br /><br>... and a bug, I think:<br><br>If you use LoadDesignerBars, then  afterwardsGetCommandBars()-&gt;GetMenuBar()-&gt;SetFlags(x tpFlagAddMDISysPopup);the system menu will not have the icons for the restore/min/max/closeoptions like they normally do when using command bars the other way.<br><br>BTW, is the ability to apply the command bars paint manager to thesystem menu for non-maximized MDI child windows going to happen or not?<br><br>]]>
   </description>
   <pubDate>Mon, 19 Apr 2004 20:56:54 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=638&amp;PID=1680&amp;title=loaddesignerbars#1680</guid>
  </item> 
  <item>
   <title><![CDATA[LoadDesignerBars :  Ok, I see it has to be not only...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=638&amp;PID=1679&amp;title=loaddesignerbars#1679</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=203">Ark42</a><br /><strong>Subject:</strong> 638<br /><strong>Posted:</strong> 19 April 2004 at 8:37pm<br /><br /><br>Ok, I see it has to be not only in CMainFrame::LoadFrame but after the call to the parent class LoadFrame as well.<br><br>Are we supposed to manually create a .h file with a list of resource#defines for IDs? There is an import option in the designer but noexport option.<br><br>Also I'm not sure where I am supposed to be hiding context menus forpopups in the designer, do I put them as menus on the main menu bar andhide them with code later on, or should they just be their own toolbar?<br><br>]]>
   </description>
   <pubDate>Mon, 19 Apr 2004 20:37:03 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=638&amp;PID=1679&amp;title=loaddesignerbars#1679</guid>
  </item> 
  <item>
   <title><![CDATA[LoadDesignerBars :  Can you use LoadDesignerBars...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=638&amp;PID=1678&amp;title=loaddesignerbars#1678</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=203">Ark42</a><br /><strong>Subject:</strong> 638<br /><strong>Posted:</strong> 19 April 2004 at 7:07pm<br /><br /><br>Can you use LoadDesignerBars with an MFC appwizard generated program?It seems to create a lot of assertion failures I'm not sure how to dealwith.<br><br>]]>
   </description>
   <pubDate>Mon, 19 Apr 2004 19:07:56 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=638&amp;PID=1678&amp;title=loaddesignerbars#1678</guid>
  </item> 
 </channel>
</rss>