<?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 : CXTP-derived class can&#039;t get WM messages</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Toolkit Pro : CXTP-derived class can&#039;t get WM messages]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Wed, 22 Apr 2026 10:32:24 +0000</pubDate>
  <lastBuildDate>Wed, 10 Dec 2008 01:32: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=12848</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[CXTP-derived class can&#039;t get WM messages : Hi, any updates on this issue?...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=12848&amp;PID=43507&amp;title=cxtpderived-class-cant-get-wm-messages#43507</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=4751">admitriev</a><br /><strong>Subject:</strong> 12848<br /><strong>Posted:</strong> 10 December 2008 at 1:32am<br /><br /><P>Hi,</P><DIV>any updates on this issue? </DIV><DIV>&nbsp;</DIV><DIV>thanks,</DIV><DIV>- Alex</DIV>]]>
   </description>
   <pubDate>Wed, 10 Dec 2008 01:32:52 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=12848&amp;PID=43507&amp;title=cxtpderived-class-cant-get-wm-messages#43507</guid>
  </item> 
  <item>
   <title><![CDATA[CXTP-derived class can&#039;t get WM messages : hi,   is there anybody who could...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=12848&amp;PID=43438&amp;title=cxtpderived-class-cant-get-wm-messages#43438</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=4751">admitriev</a><br /><strong>Subject:</strong> 12848<br /><strong>Posted:</strong> 05 December 2008 at 1:34am<br /><br />hi, <DIV>&nbsp;</DIV><DIV>is there anybody who could provide me with a suggestion on how to resolve this issue? it's quite urgent since it's been blocking my delivery which is always stressful enough... :)</DIV><DIV>&nbsp;</DIV><DIV>if you need more details about this case, please just gimme a shout...</DIV><DIV>&nbsp;</DIV><DIV>thanks,</DIV><DIV>- Alex&nbsp;</DIV><DIV>&nbsp;</DIV><DIV>PS I've just tried to reflect WM_COMMAND messages by putting <FONT size=2>ON_CONTROL_REFLECT into the message map of my control but it've not had any effect... :( Having surfed several internet forums, I've noticed quite a few questions related to my issue but no fully-working solution yet... &nbsp;</FONT></DIV>]]>
   </description>
   <pubDate>Fri, 05 Dec 2008 01:34:44 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=12848&amp;PID=43438&amp;title=cxtpderived-class-cant-get-wm-messages#43438</guid>
  </item> 
  <item>
   <title><![CDATA[CXTP-derived class can&#039;t get WM messages : Hi Oleg,   many thanks for your...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=12848&amp;PID=43413&amp;title=cxtpderived-class-cant-get-wm-messages#43413</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=4751">admitriev</a><br /><strong>Subject:</strong> 12848<br /><strong>Posted:</strong> 04 December 2008 at 2:17am<br /><br />Hi Oleg, <DIV>&nbsp;</DIV><DIV>many thanks for your prompt reply. both your and standard toolbar work the way you said, indeed! However, it wouldn't have solved my issue in any case since I don't have an access to the parent frame code. What I tried to do is to override OnChildNotify method just like we used to do in MFC-based toolbars. I was really suprised when did find that the only message came&nbsp;into OnChildNotify&nbsp;was <FONT size=2>WM_PARENTNOTIFY. No WM_COMMAND messages've come into this handler. I implemented this exactly the same way we used to do toolbars for&nbsp;MFC code. </FONT></DIV><DIV>&nbsp;</DIV><DIV><FONT size=2>Any ideas on&nbsp;how&nbsp;this issue could be sorted out, Oleg?</FONT></DIV><DIV>&nbsp;</DIV><DIV><FONT size=2>Many thanks in advance,</FONT></DIV><DIV><FONT size=2>- Alex</FONT>&nbsp;</DIV><DIV>&nbsp;</DIV><DIV>P.S. I've&nbsp;double-checked this via Spy++ and it looks like&nbsp;the parent frame receives my WM_COMMAND but doesn't notify my control... </DIV>]]>
   </description>
   <pubDate>Thu, 04 Dec 2008 02:17:15 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=12848&amp;PID=43413&amp;title=cxtpderived-class-cant-get-wm-messages#43413</guid>
  </item> 
  <item>
   <title><![CDATA[CXTP-derived class can&#039;t get WM messages : Hi,  Our Toolbar and Standard...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=12848&amp;PID=43395&amp;title=cxtpderived-class-cant-get-wm-messages#43395</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 12848<br /><strong>Posted:</strong> 03 December 2008 at 11:52am<br /><br />Hi,<DIV>&nbsp;</DIV><DIV>Our Toolbar and Standard Toolbar (I sure it will work same) send WM_COMMAND to parent/owner class - not to self.&nbsp; Catch it in parent dialog/frame.</DIV>]]>
   </description>
   <pubDate>Wed, 03 Dec 2008 11:52:33 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=12848&amp;PID=43395&amp;title=cxtpderived-class-cant-get-wm-messages#43395</guid>
  </item> 
  <item>
   <title><![CDATA[CXTP-derived class can&#039;t get WM messages : Hi all,  A few days ago I suddenly...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=12848&amp;PID=43393&amp;title=cxtpderived-class-cant-get-wm-messages#43393</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=4751">admitriev</a><br /><strong>Subject:</strong> 12848<br /><strong>Posted:</strong> 03 December 2008 at 11:11am<br /><br />Hi all,<DIV>&nbsp;</DIV><DIV>A few days ago I suddenly ran into the problem I would have never imagine to happen with MFC code before. </DIV><DIV>&nbsp;</DIV><DIV>There's a need to dynamically create a CXTPToolBar-derived class object with some buttons attached to it. When I finished with that and&nbsp;started writing the control part of my code, I found that my class object couldn't get any messages from outside (not even user-defined ones).</DIV><DIV>&nbsp;</DIV><DIV>Here's how my I've&nbsp;been trying to do that:</DIV><DIV>&nbsp;</DIV><DIV><FONT size=2><P>BEGIN_MESSAGE_MAP(DynamicToolBar, CXTPToolBar)</P></FONT><FONT size=2><P>ON_COMMAND_RANGE( ID_STD_SUMMARY_OBJECT, ID_EXT_BLOCK_OBJECT + 8, OnOptionSelect)</P><P>END_MESSAGE_MAP()</P><DIV>...</DIV><DIV>class DynamicToolBar: public CXTPToolBar</DIV><DIV><FONT color=#008000 size=2><P>//DynamicToolBar message handlers</P></FONT><FONT color=#0000ff size=2><P>protected</FONT><FONT size=2>:</P><P>afx_msg </FONT><FONT color=#0000ff size=2>virtual</FONT><FONT size=2> LRESULT OnControlSelected(WPARAM wParam, LPARAM lParam);</P><P>afx_msg </FONT><FONT color=#0000ff size=2>void</FONT><FONT size=2> OnOptionSelect(UINT nID);</P><P>DECLARE_MESSAGE_MAP()</P></FONT></FONT></DIV><DIV>No suprises, right? &nbsp;</DIV><DIV>&nbsp;</DIV><DIV>And below is how I create my toolbar.&nbsp; I must say that my code works in a separate DLL and I can't use CommandBars the way it's used in several samples provided by CJ.</DIV><DIV>&nbsp;</DIV><FONT color=#008000 size=2><P>// create a toolbar for the active communication</P></FONT><FONT size=2><P></FONT><FONT color=#0000ff size=2>if</FONT><FONT size=2>( !communicationToolBar_.CreateToolBar(</P><P>WS_CHILD | WS_VISIBLE | CBRS_TOP | CBRS_GRIPPER | </P><P>CBRS_TOOLTIPS | CBRS_FLYBY | CBRS_SIZE_DYNAMIC,</P><P>acedGetAcadFrame()) ) </P><P>{</P><P>....</P><DIV></DIV><DIV>where acedGetAcadFrame return a pointer to the CMDIFrameWnd object of the main application. </DIV><DIV>&nbsp;</DIV><DIV>Could anybody gimme a hint on what might be wrong here and how it could be worked around? </DIV><DIV>&nbsp;</DIV><DIV>many thanks for any help, guys!</DIV><DIV>- alex</FONT></DIV></DIV>]]>
   </description>
   <pubDate>Wed, 03 Dec 2008 11:11:26 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=12848&amp;PID=43393&amp;title=cxtpderived-class-cant-get-wm-messages#43393</guid>
  </item> 
 </channel>
</rss>