<?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 : Crash while creating ToolBar?</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Toolkit Pro : Crash while creating ToolBar?]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Sat, 13 Jun 2026 18:52:54 +0000</pubDate>
  <lastBuildDate>Thu, 23 Aug 2007 02:18:52 +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=7852</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[Crash while creating ToolBar? : Hurrray Problem solved, thanks.I...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=7852&amp;PID=25346&amp;title=crash-while-creating-toolbar#25346</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2774">prashant</a><br /><strong>Subject:</strong> 7852<br /><strong>Posted:</strong> 23 August 2007 at 2:18am<br /><br />Hurrray <img src="http://forum.codejock.com/smileys/smiley1.gif" border="0" align="absmiddle"><br>Problem solved, thanks.<br><br>I am able to trap <b>WM_KEYDOWN</b> message for all other keys except <b>ENTER</b><br>Not able to trap <b>VK_RETURN</b> message, my code is as follows<br><br>BOOL CToolBarSearch::PreTranslateMessage(MSG *pMsg)<br>{ <br>&nbsp;&nbsp;&nbsp; if( pMsg-&gt;message == WM_KEYDOWN )&nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp; {&nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; switch(pMsg-&gt;wParam)<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; {// Send Message to parent <br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;// Informing user Enter Key&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; case VK_RETURN:&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;  &nbsp;&nbsp;  &nbsp;&nbsp;&nbsp; m_pParent-&gt;SendMessage(WM_COMMAND,<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;  (WPARAM)MSG_MYMSG,0);<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; break;<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; }<br>&nbsp;&nbsp;&nbsp; }<br>&nbsp;&nbsp;&nbsp; return TToolBar::PreTranslateMessage(pMsg);<br>}<br><br>]]>
   </description>
   <pubDate>Thu, 23 Aug 2007 02:18:52 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=7852&amp;PID=25346&amp;title=crash-while-creating-toolbar#25346</guid>
  </item> 
  <item>
   <title><![CDATA[Crash while creating ToolBar? : instead DECLARE_DYNAMIC, IMPLEMENT_DYNAMIC...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=7852&amp;PID=25323&amp;title=crash-while-creating-toolbar#25323</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 7852<br /><strong>Posted:</strong> 22 August 2007 at 12:40pm<br /><br />instead DECLARE_DYNAMIC, IMPLEMENT_DYNAMIC use DECLARE_XTP_COMMANDBAR, IMPLEMENT_XTP_COMMANDBAR,]]>
   </description>
   <pubDate>Wed, 22 Aug 2007 12:40:06 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=7852&amp;PID=25323&amp;title=crash-while-creating-toolbar#25323</guid>
  </item> 
  <item>
   <title><![CDATA[Crash while creating ToolBar? :             Hi Oleg,I am getting...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=7852&amp;PID=25312&amp;title=crash-while-creating-toolbar#25312</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2774">prashant</a><br /><strong>Subject:</strong> 7852<br /><strong>Posted:</strong> 22 August 2007 at 10:23am<br /><br />   <!-- Start Member Post -->      Hi Oleg,<br><br><font color="#ff0000">I am getting crash&nbsp; following call:-<br><br></font><b>&gt;&gt; CToolBarViewName </b>is derived from<b> CXTPToolBar<br><br></b>&gt;&gt; Also I added following lines in .h and .cpp file respectively.<br><br>DECLARE_DYNAMIC(<b>CToolBarViewName</b>)&nbsp;  <br>IMPLEMENT_DYNAMIC(<b>CToolBarViewName </b>,<b>CXTPToolBar</b>)<br><br><b>CToolBarViewName </b>*m_wndToolBar;<br><br>Following Line of code CRASHING:<br><br>m_wndToolBar = (<b>CToolBarViewName</b>*)pCommandBars-&gt;Add(_T("View"), xtpBarTop, RUNTIME_CLASS(<b>CToolBarViewName </b>));<br><br>2) I need to handle PreTranslateMessage of my Toolbar class <b>CToolBarViewName</b>.<br><br>Thanks in advance.]]>
   </description>
   <pubDate>Wed, 22 Aug 2007 10:23:01 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=7852&amp;PID=25312&amp;title=crash-while-creating-toolbar#25312</guid>
  </item> 
 </channel>
</rss>