<?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 : Click &#101;vent &#111;n CXTPC&#111;ntrolEdit</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Command Bars : Click &#101;vent &#111;n CXTPC&#111;ntrolEdit]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Wed, 13 May 2026 20:14:39 +0000</pubDate>
  <lastBuildDate>Tue, 19 Jul 2005 11:23:04 +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=2572</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[Click &#101;vent &#111;n CXTPC&#111;ntrolEdit : Thanks again for all of you help,...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=2572&amp;PID=7745&amp;title=click-event-on-cxtpcontroledit#7745</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=1318">csturg</a><br /><strong>Subject:</strong> 2572<br /><strong>Posted:</strong> 19 July 2005 at 11:23am<br /><br /><P>Thanks again for all of you help, but that still only works for the first click. Here is a brief explanation of what I am trying to do:</P><P>When the user clicks on the edit control, I am immediately popping up a floating mulitline CEdit control window (or a CEdit control in a modeless dialog) that will&nbsp;cover the&nbsp;toolbar edit control and expand in size as the user types text. So the edit control will need to grow beyond the toolbar window boundaries. The edit control on the toolbar is only there to appear like an edit control to the user and to launch the floating control when they click on it. This is why I want to kill the focus&nbsp;and launch my floating edit control as soon as the user clicks on the toolbar edit control.</P><P>Unless you can think of a way to have a multiline edit control on one of your toolbar, no need to respond further on this issuse. I will try doing it using CToolbar or CDialogBar.</P><P>Thanks again.</P><P>&nbsp;</P>]]>
   </description>
   <pubDate>Tue, 19 Jul 2005 11:23:04 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=2572&amp;PID=7745&amp;title=click-event-on-cxtpcontroledit#7745</guid>
  </item> 
  <item>
   <title><![CDATA[Click &#101;vent &#111;n CXTPC&#111;ntrolEdit : In CustomThemes sample I added: void...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=2572&amp;PID=7740&amp;title=click-event-on-cxtpcontroledit#7740</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 2572<br /><strong>Posted:</strong> 19 July 2005 at 8:16am<br /><br /><P>In CustomThemes sample I added:</P><P>void CControlComboBoxEx::OnSetFocus(CWnd* pOldWnd)</P><P>{<BR>&nbsp;CXTPControlComboBox::OnSetFocus(pOldWnd);<BR>&nbsp;<BR>&nbsp;m_pParent-&gt;GetSite()-&gt;PostMessage(WM_COMMAND, XTP_ID_CUSTOMIZE);<BR>}</P><P>void CMainFrame::OnCustomize()<BR>{<BR>&nbsp;XTPMouseManager()-&gt;SendTrackLost(); </P><P>&nbsp;..</P><P>}</P><P>and it works. But are you sure you need ControlEdit/ControlCombox that never receive focus?</P><P>&nbsp;</P>]]>
   </description>
   <pubDate>Tue, 19 Jul 2005 08:16:34 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=2572&amp;PID=7740&amp;title=click-event-on-cxtpcontroledit#7740</guid>
  </item> 
  <item>
   <title><![CDATA[Click &#101;vent &#111;n CXTPC&#111;ntrolEdit : Thanks, I tried that, but same...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=2572&amp;PID=7727&amp;title=click-event-on-cxtpcontroledit#7727</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=1318">csturg</a><br /><strong>Subject:</strong> 2572<br /><strong>Posted:</strong> 18 July 2005 at 10:51am<br /><br /><P>Thanks, I tried that, but same problem occurs. Even if I just display a message box as follows, <FONT size=1>OnSetFocus </FONT>only gets called that first time and the toolbar edit control is unresponsive from that point on:</P><FONT color=#0000ff size=2><P><FONT size=1>void</FONT></FONT><FONT size=1> TToolBarEditControl::OnSetFocus(CWnd* pOldWnd)</FONT></P><P><FONT size=1>{</FONT></P><P><FONT size=1>XTPMouseManager()-&gt;SendTrackLost(); </FONT></P><P><FONT size=1>AfxMessageBox("hello");</FONT></P><P><FONT size=1>}</FONT></P><P><FONT size=1>Thanks</FONT></P><P><FONT size=1></FONT>&nbsp;</P><P><FONT size=1></FONT>&nbsp;</P><P><FONT size=1></FONT>&nbsp;</P><P><FONT size=1></FONT>&nbsp;</P>]]>
   </description>
   <pubDate>Mon, 18 Jul 2005 10:51:28 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=2572&amp;PID=7727&amp;title=click-event-on-cxtpcontroledit#7727</guid>
  </item> 
  <item>
   <title><![CDATA[Click &#101;vent &#111;n CXTPC&#111;ntrolEdit : Hmm, don&amp;#039;t know how it looks...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=2572&amp;PID=7721&amp;title=click-event-on-cxtpcontroledit#7721</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 2572<br /><strong>Posted:</strong> 18 July 2005 at 5:59am<br /><br /><P>Hmm, don't know how it looks for end user if you open dialog when he just click edit.</P><P>Anyway you must before move focus away from Edit.</P><P>call </P><P>XTPMouseManager()-&gt;SendTrackLost(); it will unselct edit.</P>]]>
   </description>
   <pubDate>Mon, 18 Jul 2005 05:59:35 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=2572&amp;PID=7721&amp;title=click-event-on-cxtpcontroledit#7721</guid>
  </item> 
  <item>
   <title><![CDATA[Click &#101;vent &#111;n CXTPC&#111;ntrolEdit : Although the method you suggested...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=2572&amp;PID=7714&amp;title=click-event-on-cxtpcontroledit#7714</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=1318">csturg</a><br /><strong>Subject:</strong> 2572<br /><strong>Posted:</strong> 17 July 2005 at 4:20pm<br /><br /><P>Although the method you suggested works:</P><P><EM>i.e., You can override CXTPControlEdit and its virtual void OnSet<SPAN =highlight>Focus</SPAN>(CWnd* pOldWnd);</EM></P><P>If I popup a dialog (modal or modeless) from that handled event three strange things happen:</P><P>1) The edit control on my popped up dialog has no caret (cursor)</P><P>2) The OnSet<SPAN =highlight>Focus</SPAN>() event is&nbsp;only called the first time the&nbsp;user clicks in the toolbar edit control.&nbsp; Subsequent clicks are ignored after the first click that popped up the dialog. Only clicking on the edit control border triggers the event.</P><P>3) After this sequence, the caret on the toolbar edit control no longer exists, even if it has the focus.</P><P>Any ideas?</P><P>Thanks</P><P><BR>&nbsp;</P>]]>
   </description>
   <pubDate>Sun, 17 Jul 2005 16:20:41 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=2572&amp;PID=7714&amp;title=click-event-on-cxtpcontroledit#7714</guid>
  </item> 
  <item>
   <title><![CDATA[Click &#101;vent &#111;n CXTPC&#111;ntrolEdit : Worked perfect. Thanks a lot. ]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=2572&amp;PID=7680&amp;title=click-event-on-cxtpcontroledit#7680</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=1318">csturg</a><br /><strong>Subject:</strong> 2572<br /><strong>Posted:</strong> 14 July 2005 at 11:49am<br /><br />Worked perfect. Thanks a lot.]]>
   </description>
   <pubDate>Thu, 14 Jul 2005 11:49:01 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=2572&amp;PID=7680&amp;title=click-event-on-cxtpcontroledit#7680</guid>
  </item> 
  <item>
   <title><![CDATA[Click &#101;vent &#111;n CXTPC&#111;ntrolEdit : Send in this overriden member...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=2572&amp;PID=7670&amp;title=click-event-on-cxtpcontroledit#7670</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 2572<br /><strong>Posted:</strong> 14 July 2005 at 1:52am<br /><br /><P>Send in this overriden member message to site:</P><P>m_pParent-&gt;GetSite()-&gt;SendMessage(WM_YOURMESSAGE, 0, (LPARAM)this);</P><P>&nbsp;</P>]]>
   </description>
   <pubDate>Thu, 14 Jul 2005 01:52:24 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=2572&amp;PID=7670&amp;title=click-event-on-cxtpcontroledit#7670</guid>
  </item> 
  <item>
   <title><![CDATA[Click &#101;vent &#111;n CXTPC&#111;ntrolEdit : Thanks. That worked.Just one more...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=2572&amp;PID=7669&amp;title=click-event-on-cxtpcontroledit#7669</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=1318">csturg</a><br /><strong>Subject:</strong> 2572<br /><strong>Posted:</strong> 13 July 2005 at 7:00pm<br /><br /><P>Thanks. That worked.&nbsp;Just one more question. Although I am able to capture the event in my derived class now, I really need to handle the event in my mainframe or view class. What is the best way to route this event to my mainframe class?</P><P>Thanks again.</P>]]>
   </description>
   <pubDate>Wed, 13 Jul 2005 19:00:47 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=2572&amp;PID=7669&amp;title=click-event-on-cxtpcontroledit#7669</guid>
  </item> 
  <item>
   <title><![CDATA[Click &#101;vent &#111;n CXTPC&#111;ntrolEdit : You can override CXTPControlEdit...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=2572&amp;PID=7667&amp;title=click-event-on-cxtpcontroledit#7667</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 2572<br /><strong>Posted:</strong> 13 July 2005 at 4:35pm<br /><br /><P>You can override CXTPControlEdit and its </P><P>virtual void OnSetFocus(CWnd* pOldWnd);<BR></P>]]>
   </description>
   <pubDate>Wed, 13 Jul 2005 16:35:00 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=2572&amp;PID=7667&amp;title=click-event-on-cxtpcontroledit#7667</guid>
  </item> 
  <item>
   <title><![CDATA[Click &#101;vent &#111;n CXTPC&#111;ntrolEdit : I have a created an edit control...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=2572&amp;PID=7665&amp;title=click-event-on-cxtpcontroledit#7665</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=1318">csturg</a><br /><strong>Subject:</strong> 2572<br /><strong>Posted:</strong> 13 July 2005 at 1:40pm<br /><br /><P>I have a created an edit control (CXTPControlEdit) on a command bar. I would like to be notified&nbsp;when the user activates the control by clicking in the edit control text area. How would I capture this event?</P><P>Thanks, Craig</P>]]>
   </description>
   <pubDate>Wed, 13 Jul 2005 13:40:43 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=2572&amp;PID=7665&amp;title=click-event-on-cxtpcontroledit#7665</guid>
  </item> 
 </channel>
</rss>