<?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 : Change notificati&#111;n for CXTPC&#111;ntrolEdit?</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Command Bars : Change notificati&#111;n for CXTPC&#111;ntrolEdit?]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Tue, 21 Apr 2026 15:54:20 +0000</pubDate>
  <lastBuildDate>Mon, 17 Apr 2006 09:02: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=1196</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[Change notificati&#111;n for CXTPC&#111;ntrolEdit? :     Actually,     1. I...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=1196&amp;PID=12226&amp;title=change-notification-for-cxtpcontroledit#12226</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=1424">g_j_a_i_n</a><br /><strong>Subject:</strong> 1196<br /><strong>Posted:</strong> 17 April 2006 at 9:02am<br /><br /><br><br>Actually, <br><br>1. I derive a class from CXTPToolBar<br>2. Then override the virtual function CWnd:: OnCommand() since CXTPToolBar is derived from CWnd<br>3. Forward all the command messages to the owner of the toolbar. Thecommand message includes EN_CHANGE from edit control. To get the ownerI use the CXTPToolBar::GetSite() function<br><br>This works for me.<br><br>Regards,<br>Gautam Jain<br>]]>
   </description>
   <pubDate>Mon, 17 Apr 2006 09:02:52 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=1196&amp;PID=12226&amp;title=change-notification-for-cxtpcontroledit#12226</guid>
  </item> 
  <item>
   <title><![CDATA[Change notificati&#111;n for CXTPC&#111;ntrolEdit? : Hi there, Thanks for your input...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=1196&amp;PID=7831&amp;title=change-notification-for-cxtpcontroledit#7831</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=1338">Hazelnut</a><br /><strong>Subject:</strong> 1196<br /><strong>Posted:</strong> 25 July 2005 at 10:12am<br /><br /><P>Hi there,</P><P>Thanks for your input and reply.&nbsp; Yes, it would be very nice if they included notifications, but at this time they don't seem to. My issue is that I need to get the text from the edit control even if the user does not press the enter key.&nbsp; (You know how users are!) <IMG src="http://forum.codejock.com/smileys/smiley2.gif" border="0">.&nbsp; At this time, I am also doing something very close to as you suggest (Thanks) and it works ...but only if the user hits enter. I need to find a way to get notifications when the text changes in the edit box. It sounds like I'm going to have to do it the hard way <IMG src="http://forum.codejock.com/smileys/smiley19.gif" border="0">&nbsp;I'd really like to get on with writing the application rather than trying to get the GUI to work as expected.</P><P>Anyway, Best Regards!</P>]]>
   </description>
   <pubDate>Mon, 25 Jul 2005 10:12:49 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=1196&amp;PID=7831&amp;title=change-notification-for-cxtpcontroledit#7831</guid>
  </item> 
  <item>
   <title><![CDATA[Change notificati&#111;n for CXTPC&#111;ntrolEdit? : When the user hits the return...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=1196&amp;PID=7828&amp;title=change-notification-for-cxtpcontroledit#7828</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=491">brianh</a><br /><strong>Subject:</strong> 1196<br /><strong>Posted:</strong> 25 July 2005 at 3:41am<br /><br /><P><FONT face="Arial, Helvetica, sans-serif" size=2>When the user hits the return key after editing, the framework sends an execute message (as though it was a button) which you can handle in the message map with:</FONT></P><P><FONT size=2>ON_XTP_EXECUTE(ID_MYEDIT, OnMyEdit)</FONT></P><FONT size=2><FONT color=#0000ff size=2><P>void</FONT><FONT size=2> CMyClass::OnMyEdit(NMHDR* pNMHDR, LRESULT* pResult)</P><P>{</P><P>NMXTPCONTROL* tagNMCONTROL = (NMXTPCONTROL*)pNMHDR;</P><P>CXTPControlEdit* pControl = (CXTPControlEdit*)tagNMCONTROL-&gt;pControl;</P><P></FONT><FONT color=#0000ff size=2>if</FONT><FONT size=2> (pControl-&gt;GetType() == xtpControlEdit)</P><P>{</P><P>CString str = pControl-&gt;GetEditText() ;</P><P>// do something with text</P><P>}</P><P>}</P><P>Since this is all I needed I just used this technique.&nbsp; If you need more you'll have to derive your own edit control type (as Oleg shows above), intercept all the notifications&nbsp;using the REFLECT handlers and then send your own notification messages on to the parent/owner.&nbsp; I didn't look into where you would find the owner but you can always pass it in to your control when you create it.&nbsp; I think it's almost unbelievable that notifications are not already sent to the parent/owner of the controls in the toolbar (without them they're useless!), maybe they have rectified this in later versions, if not I think it's something they should seriously look into doing.</P></FONT></FONT><span style="font-size:10px"><br /><br />Edited by brianh</span>]]>
   </description>
   <pubDate>Mon, 25 Jul 2005 03:41:40 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=1196&amp;PID=7828&amp;title=change-notification-for-cxtpcontroledit#7828</guid>
  </item> 
  <item>
   <title><![CDATA[Change notificati&#111;n for CXTPC&#111;ntrolEdit? : Did anyone figure this out? I&amp;#039;m...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=1196&amp;PID=7823&amp;title=change-notification-for-cxtpcontroledit#7823</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=1338">Hazelnut</a><br /><strong>Subject:</strong> 1196<br /><strong>Posted:</strong> 24 July 2005 at 5:18pm<br /><br />Did anyone figure this out?&nbsp;<IMG src="http://forum.codejock.com/smileys/smiley7.gif" border="0"> I'm also having problems getting the notifications from the edit control in the toobar posting to the frame window.&nbsp; It really seems like this would be an important thing to have already implemented in the Control bar's framework ...unless I'm missing something here. I'm using XTP 9.70 <IMG src="http://forum.codejock.com/smileys/smiley5.gif" border="0">]]>
   </description>
   <pubDate>Sun, 24 Jul 2005 17:18:18 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=1196&amp;PID=7823&amp;title=change-notification-for-cxtpcontroledit#7823</guid>
  </item> 
  <item>
   <title><![CDATA[Change notificati&#111;n for CXTPC&#111;ntrolEdit? : hmmm, I had a feeling that&amp;#039;s...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=1196&amp;PID=3226&amp;title=change-notification-for-cxtpcontroledit#3226</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=491">brianh</a><br /><strong>Subject:</strong> 1196<br /><strong>Posted:</strong> 23 September 2004 at 5:13am<br /><br /><P>hmmm, I had a feeling that's what you meant - this allows the control to handle the notification itself, but I want the parent frame/view to handle it.&nbsp; Do I really have to implement my own notification messages to do this?!! <IMG src="http://forum.codejock.com/smileys/smiley13.gif" border="0"></P><P>If so,&nbsp;can you tell&nbsp;me where I can&nbsp;find the window pointer/handle for the toolbar's parent, do I use the GetParent() method to get the command bar, then it's GetOwnerSite() to get the frame pointer?</P><P>Thanks.</P><span style="font-size:10px"><br /><br />Edited by brianh</span>]]>
   </description>
   <pubDate>Thu, 23 Sep 2004 05:13:07 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=1196&amp;PID=3226&amp;title=change-notification-for-cxtpcontroledit#3226</guid>
  </item> 
  <item>
   <title><![CDATA[Change notificati&#111;n for CXTPC&#111;ntrolEdit? : class CControlEditCtrl : public...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=1196&amp;PID=3219&amp;title=change-notification-for-cxtpcontroledit#3219</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 1196<br /><strong>Posted:</strong> 23 September 2004 at 1:20am<br /><br /><P>class CControlEditCtrl : public CXTPControlEditCtrl<BR>{<BR>&nbsp;void OnChanged();<BR>public:<BR>&nbsp;DECLARE_MESSAGE_MAP()<BR>};</P><P>class CControlEdit: public CXTPControlEdit<BR>{<BR>&nbsp;DECLARE_XTP_CONTROL(CControlEdit)<BR>public:<BR>&nbsp;CXTPControlEditCtrl* CreateEditControl()<BR>&nbsp;{<BR>&nbsp;&nbsp;return new CControlEditCtrl();<BR>&nbsp;}<BR>};</P><P> //////////////////////////////////////////////////////////// //////////////<BR>//<BR>IMPLEMENT_XTP_CONTROL(CControlEdit, CXTPControlEdit)</P><P><BR>BEGIN_MESSAGE_MAP(CControlEditCtrl, CXTPControlEditCtrl)<BR>&nbsp;ON_CONTROL_REFLECT(EN_CHANGE, OnChanged)<BR>END_MESSAGE_MAP()</P><P>void CControlEditCtrl::OnChanged()<BR>{</P><P>}</P>]]>
   </description>
   <pubDate>Thu, 23 Sep 2004 01:20:06 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=1196&amp;PID=3219&amp;title=change-notification-for-cxtpcontroledit#3219</guid>
  </item> 
  <item>
   <title><![CDATA[Change notificati&#111;n for CXTPC&#111;ntrolEdit? : I looked at the sample but couldn&amp;#039;t...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=1196&amp;PID=3210&amp;title=change-notification-for-cxtpcontroledit#3210</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=491">brianh</a><br /><strong>Subject:</strong> 1196<br /><strong>Posted:</strong> 22 September 2004 at 5:47am<br /><br /><P>I looked at the sample but couldn't see anywhere that was handling notifications from a CXTPControlEdit, the only override for CreateEditControl() is for a combobox and it doesn't seem to handle notifications either.<IMG src="http://forum.codejock.com/smileys/smiley5.gif" border="0"></P><P>Can you give me an example of how to handle notifications from an edit control?&nbsp;</P><P>Thanks</P>]]>
   </description>
   <pubDate>Wed, 22 Sep 2004 05:47:44 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=1196&amp;PID=3210&amp;title=change-notification-for-cxtpcontroledit#3210</guid>
  </item> 
  <item>
   <title><![CDATA[Change notificati&#111;n for CXTPC&#111;ntrolEdit? : You need to override CXTPControlEditand...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=1196&amp;PID=3209&amp;title=change-notification-for-cxtpcontroledit#3209</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 1196<br /><strong>Posted:</strong> 22 September 2004 at 12:06am<br /><br /><P>You need to override CXTPControlEdit&nbsp;and its </P><P>CXTPControlEditCtrl* CreateEditControl()</P><P>see this technique in CustomThemes sample</P><P>(Samples\CommandBars\CustomThemes\CustomControls.h)</P>]]>
   </description>
   <pubDate>Wed, 22 Sep 2004 00:06:18 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=1196&amp;PID=3209&amp;title=change-notification-for-cxtpcontroledit#3209</guid>
  </item> 
  <item>
   <title><![CDATA[Change notificati&#111;n for CXTPC&#111;ntrolEdit? : Hi, I have a CXTPControlEditcontrol...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=1196&amp;PID=3201&amp;title=change-notification-for-cxtpcontroledit#3201</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=491">brianh</a><br /><strong>Subject:</strong> 1196<br /><strong>Posted:</strong> 21 September 2004 at 8:45am<br /><br /><P>Hi, I have a CXTPControlEdit&nbsp;control in a CXTPToolBar and need to be notified when the text is changed, I tried handling the EN_CHANGE notification but this does not seem to be getting sent, can you tell me how I can get this notification message?</P><P>Thanks.</P>]]>
   </description>
   <pubDate>Tue, 21 Sep 2004 08:45:19 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=1196&amp;PID=3201&amp;title=change-notification-for-cxtpcontroledit#3201</guid>
  </item> 
 </channel>
</rss>