<?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 : Shortcutbar without doc/view</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Shortcut Bar : Shortcutbar without doc/view]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Sun, 17 May 2026 11:01:25 +0000</pubDate>
  <lastBuildDate>Tue, 22 Apr 2008 05:08:05 +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=10253</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[Shortcutbar without doc/view : Thanks Oleg! That solved it! ...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=10253&amp;PID=34065&amp;title=shortcutbar-without-doc-view#34065</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3688">BobWansink</a><br /><strong>Subject:</strong> 10253<br /><strong>Posted:</strong> 22 April 2008 at 5:08am<br /><br />Thanks Oleg! That solved it!]]>
   </description>
   <pubDate>Tue, 22 Apr 2008 05:08:05 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=10253&amp;PID=34065&amp;title=shortcutbar-without-doc-view#34065</guid>
  </item> 
  <item>
   <title><![CDATA[Shortcutbar without doc/view : Hi, If you build application...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=10253&amp;PID=34027&amp;title=shortcutbar-without-doc-view#34027</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 10253<br /><strong>Posted:</strong> 21 April 2008 at 8:44am<br /><br />Hi,<DIV>If you build application statically you need add toolkit resource to your exe.</DIV><DIV>&nbsp;</DIV><DIV>in res\app.rc2 file add</DIV><DIV>#include "XtToolkitPro.rc"</DIV>]]>
   </description>
   <pubDate>Mon, 21 Apr 2008 08:44:46 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=10253&amp;PID=34027&amp;title=shortcutbar-without-doc-view#34027</guid>
  </item> 
  <item>
   <title><![CDATA[Shortcutbar without doc/view :  I&amp;#039;ve been plowing ahead...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=10253&amp;PID=34014&amp;title=shortcutbar-without-doc-view#34014</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3688">BobWansink</a><br /><strong>Subject:</strong> 10253<br /><strong>Posted:</strong> 21 April 2008 at 6:16am<br /><br />I've been plowing ahead for a while now. I've managed to get most things working like i want them to, but one little problem remains:<br><br>My CMainFrame class has a CXTPShortcutBar member. Creating a CMainFrame object without doc/view support, the default constructor is called. In DEBUG mode, it shows me a debug assertion failure at line 53 of xtpshortcutbarpaintmanager.cpp, where it tries the following:<br><br>line 52: &nbsp;&nbsp; <br><font size="2" face="Courier New, Courier, mono">iconHandle.CreateIconFromResource(AfxFindResourceHandle(MAKEINTRESOURCE(XTP_IDI_SHORTCUT_EXPAND_ALPHA),<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp; &nbsp;RT_GROUP_ICON), MAKEINTRESOURCE(XTP_IDI_SHORTCUT_EXPAND_ALPHA), CSize(16, 16), TRUE);<br></font>line 53: (breaking the application)<br><font size="2" face="Courier New, Courier, mono">ASSERT(!iconHandle.IsEmpty()); <br></font><br>simply ignoring the problem, the debugger continues and the shortcutbar is created without any problems. The application runs smoothly and doesn't crash. <br><br>Running the application in "Release" mode doesn't generate the exception (since assert is debug only..) and runs the application smoothly. It seems that the call to iconHandle.CreateIconFromResource() fails, causing the debug assertion. <br><br>Does anyone know what I'm doing wrong here? Anyone from the CJ-Team know what's happening? <br>]]>
   </description>
   <pubDate>Mon, 21 Apr 2008 06:16:33 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=10253&amp;PID=34014&amp;title=shortcutbar-without-doc-view#34014</guid>
  </item> 
  <item>
   <title><![CDATA[Shortcutbar without doc/view : I&amp;#039;ve been working ahead for...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=10253&amp;PID=33899&amp;title=shortcutbar-without-doc-view#33899</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3688">BobWansink</a><br /><strong>Subject:</strong> 10253<br /><strong>Posted:</strong> 18 April 2008 at 7:47am<br /><br />I've been working ahead for a while now, and I'm stuck at the following situation:<br><br>I have an application without Document/View Architecture. As such, I can't use the above mentioned code (<font size="2" face="Courier New, Courier, mono">CSingleDocTemplate</font>). <br><br>I want to add the Shortcutbar, but adding it to CMainFrame as member requires CMainFrame to have a '<font size="2" face="Courier New, Courier, mono">protected</font>' default constructor. Using a public constructor causes a debug assertion, since the system is going to try to create the CXTPShortcutBar outside of my createShortcutBar method.<br><br><br>Without the <font size="2" face="Courier New, Courier, mono">public</font> CMainFrame constructor, I won't be able to add the Shortcutbar; with it, you're forcing me to use the Document/View architecture, which isn't what I want. &nbsp; <br><br>I hope my explanation isn't all too muddled by bad english, and I hope to recieve an answer soon.<br><br>Bob<br>]]>
   </description>
   <pubDate>Fri, 18 Apr 2008 07:47:20 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=10253&amp;PID=33899&amp;title=shortcutbar-without-doc-view#33899</guid>
  </item> 
  <item>
   <title><![CDATA[Shortcutbar without doc/view : Hi everyone,I&amp;#039;m struggling...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=10253&amp;PID=33741&amp;title=shortcutbar-without-doc-view#33741</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3688">BobWansink</a><br /><strong>Subject:</strong> 10253<br /><strong>Posted:</strong> 16 April 2008 at 5:25am<br /><br />Hi everyone,<br><br>I'm struggling with an interesting problem. Our application doesn't have a document/view architecture. Is it possible to add a Shortcutbar to the application without having to use the code:<br><br><font size="2" face="Courier New, Courier, mono">&nbsp;&nbsp;&nbsp; CSingleDocTemplate* pDocTemplate;<br>&nbsp;&nbsp;&nbsp; pDocTemplate = new CSingleDocTemplate(<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; IDR_MAINFRAME,<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; RUNTIME_CLASS(CShortcutBarDoc),<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; RUNTIME_CLASS(CMainFrame),&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; // main SDI frame window<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; RUNTIME_CLASS(CShortcutBarView));<br>&nbsp;&nbsp;&nbsp; AddDocTemplate(pDocTemplate);<br></font><br>Since i don't have a doc and view, i can't make a CSingleDocTemplate and without the template pointer my application won't work...<br><br>I'd like to hear your ideas about this. Is it necessary to make de doctemplate or can i do without? Can I create de doctemplate without a document and view?<br><br>Thanks in advance!<br><br>Bob<br>]]>
   </description>
   <pubDate>Wed, 16 Apr 2008 05:25:47 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=10253&amp;PID=33741&amp;title=shortcutbar-without-doc-view#33741</guid>
  </item> 
 </channel>
</rss>