<?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 : &#079;nCreateC&#111;ntrol, edit c&#111;ntrol in toolbar</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Toolkit Pro : &#079;nCreateC&#111;ntrol, edit c&#111;ntrol in toolbar]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Wed, 13 May 2026 18:43:50 +0000</pubDate>
  <lastBuildDate>Mon, 25 Jun 2007 21:53:31 +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=2002</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[&#079;nCreateC&#111;ntrol, edit c&#111;ntrol in toolbar :  //header file afx_msg void...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=2002&amp;PID=23928&amp;title=oncreatecontrol-edit-control-in-toolbar#23928</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3046">xxcln</a><br /><strong>Subject:</strong> 2002<br /><strong>Posted:</strong> 25 June 2007 at 9:53pm<br /><br /><FONT size=1><DIV>//header file</DIV><DIV>afx_msg void OnUpdateGoto(CCmdUI* pCmdUI);</DIV><DIV>//cpp file</DIV><DIV>ON_UPDATE_COMMAND_UI(ID_WINDOW_GOTO, OnUpdateGoto)</DIV><DIV>&nbsp;</DIV><DIV>void CMainFrame::OnUpdateGoto(CCmdUI* pCmdUI)<BR>{</DIV><DIV>&nbsp;pCmdUI-&gt;Enable(MDIGetActive() != NULL);</DIV><DIV>}</FONT></DIV>]]>
   </description>
   <pubDate>Mon, 25 Jun 2007 21:53:31 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=2002&amp;PID=23928&amp;title=oncreatecontrol-edit-control-in-toolbar#23928</guid>
  </item> 
  <item>
   <title><![CDATA[&#079;nCreateC&#111;ntrol, edit c&#111;ntrol in toolbar : I have code like this that works...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=2002&amp;PID=5904&amp;title=oncreatecontrol-edit-control-in-toolbar#5904</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=1011">Barto</a><br /><strong>Subject:</strong> 2002<br /><strong>Posted:</strong> 23 March 2005 at 8:03am<br /><br /><P>I have code like this that works for me:</P><P><table width="99%"><tr><td><pre class="BBcode">ON_XTP_EXECUTE(ID_PARTNAME, OnPartname)<BR>void CPartView::OnPartname(NMHDR* pNMHDR, LRESULT* pResult)<BR>{<BR>&nbsp;CXTPControlEdit* pControl = (CXTPControlEdit*)((NMXTPCONTROL*)pNMHDR)-&gt;pControl;<BR>&nbsp;m_pPartRef-&gt;m_pPart-&gt;m_sName = pControl-&gt;GetEditText();<BR>&nbsp;GetDocument()-&gt;SetModifiedFlag();<BR>&nbsp;GetDocument()-&gt;UpdateAllViews(this);</P><P>&nbsp;*pResult = TRUE;<BR>}<BR></P><P>ON_XTP_CREATECONTROL()<BR>int CPartFrame::OnCreateControl(LPCREATECONTROLSTRUCT lpCreateControl)<BR>{<BR>&nbsp;if(lpCreateControl-&gt;nID == ID_PARTNAME) {<BR>&nbsp;&nbsp;CXTPControlEdit* pEdit = (CXTPControlEdit*)CXTPControlEdit::CreateObject();<BR>&nbsp;&nbsp;pEdit-&gt;SetWidth(250);<BR>&nbsp;&nbsp;lpCreateControl-&gt;pControl = pEdit;<BR>&nbsp;&nbsp;return TRUE;<BR>&nbsp;}<BR>&nbsp;return FALSE;<BR>}<BR></pre></td></tr></table></P>]]>
   </description>
   <pubDate>Wed, 23 Mar 2005 08:03:17 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=2002&amp;PID=5904&amp;title=oncreatecontrol-edit-control-in-toolbar#5904</guid>
  </item> 
  <item>
   <title><![CDATA[&#079;nCreateC&#111;ntrol, edit c&#111;ntrol in toolbar : I added ES_WANTRETURN to the Create...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=2002&amp;PID=5888&amp;title=oncreatecontrol-edit-control-in-toolbar#5888</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=775">Maye Johnson</a><br /><strong>Subject:</strong> 2002<br /><strong>Posted:</strong> 22 March 2005 at 12:03pm<br /><br />I added ES_WANTRETURN to the Create call, but it didn't changeanything.&nbsp; What I want is a masked input control in thetoolbar, set to accept only numbers and have a specified inputlength.&nbsp; That's why I used CEdit, but then I don't get the Enterkey and the input field doesn't get outlined when the mouse is over it.<br><span style="font-size:10px"><br /><br />Edited by Maye Johnson</span>]]>
   </description>
   <pubDate>Tue, 22 Mar 2005 12:03:27 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=2002&amp;PID=5888&amp;title=oncreatecontrol-edit-control-in-toolbar#5888</guid>
  </item> 
  <item>
   <title><![CDATA[&#079;nCreateC&#111;ntrol, edit c&#111;ntrol in toolbar : I already have a handler, but...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=2002&amp;PID=5887&amp;title=oncreatecontrol-edit-control-in-toolbar#5887</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=775">Maye Johnson</a><br /><strong>Subject:</strong> 2002<br /><strong>Posted:</strong> 22 March 2005 at 11:42am<br /><br />I already have a handler, but it doesn't get called when the Enter keyis pressed.&nbsp; Maybe there's something wrong with my setup code?<br><br><table width="99%"><tr><td><pre class="BBcode"><br>.h file: CEdit&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;m_GotoEdit;<br><br>.cpp file:<br>&nbsp;&nbsp;&nbsp; //}}AFX_MSG_MAP<br>&nbsp;&nbsp;&nbsp; ON_XTP_EXECUTE(IDC_TDLEDITOR_GOTO_EDIT, OnGoto)<br>&nbsp;&nbsp;&nbsp; ON_XTP_CREATECONTROL()<br><br><br>int CTDLEditorFrame::OnCreateControl(LPCREATECONTROLSTRUCT lpCreateControl)<br>{<br>&nbsp;&nbsp;&nbsp; if (lpCreateControl-&gt;bToolBar)<br>&nbsp;&nbsp;&nbsp; {<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; CXTPToolBar* pToolBar = DYNAMIC_DOWNCAST(CXTPToolBar, lpCreateControl-&gt;pCommandBar);<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; if (!pToolBar)<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; return FALSE;<br><br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; if (pToolBar-&gt;GetBarID() == IDR_TDLEDITORGOTOBAR)<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; {<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; if (lpCreateControl-&gt;nID == IDC_TDLEDITOR_GOTO_EDIT)<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; {<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; CXTPControlCustom* pControl = (CXTPControlCustom*)CXTPControlCustom::CreateObject();<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if (!m_GotoEdit.Create(WS_CHILD | WS_VISIBLE |ES_NUMBER, CRect(0, 0, 90, 16), this, IDC_TDLEDITOR_GOTO_EDIT))<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; return FALSE;<br><br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; m_GotoEdit.SetLimitText(9);<br><br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; pControl-&gt;SetControl(&amp;m_GotoEdit);<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; lpCreateControl-&gt;pControl = pControl;<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; return TRUE;<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; }<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; }<br>&nbsp;&nbsp;&nbsp; }<br><br>&nbsp;&nbsp;&nbsp; return FALSE;<br>}<br></pre></td></tr></table><br>]]>
   </description>
   <pubDate>Tue, 22 Mar 2005 11:42:58 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=2002&amp;PID=5887&amp;title=oncreatecontrol-edit-control-in-toolbar#5887</guid>
  </item> 
  <item>
   <title><![CDATA[&#079;nCreateC&#111;ntrol, edit c&#111;ntrol in toolbar :  ON_XTP_EXECUTE(ID_EDIT_FIND,...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=2002&amp;PID=5862&amp;title=oncreatecontrol-edit-control-in-toolbar#5862</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 2002<br /><strong>Posted:</strong> 22 March 2005 at 5:47am<br /><br /><P>&nbsp;</P><P>ON_XTP_EXECUTE(ID_EDIT_FIND, OnEditFind)</P><P>&nbsp;</P><P>void CCustomThemesView::OnEditFind(NMHDR* pNMHDR, LRESULT* pResult)<BR>{<BR>&nbsp;NMXTPCONTROL* tagNMCONTROL = (NMXTPCONTROL*)pNMHDR;</P><P>&nbsp;CXTPControlEdit* pControl = (CXTPControlEdit*)tagNMCONTROL-&gt;pControl;<BR>&nbsp;if (pControl-&gt;GetType() == xtpControlEdit)<BR>&nbsp;{<BR>&nbsp;&nbsp;*pResult = 1; // Handled;<BR>&nbsp;}<BR>}<BR></P>]]>
   </description>
   <pubDate>Tue, 22 Mar 2005 05:47:30 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=2002&amp;PID=5862&amp;title=oncreatecontrol-edit-control-in-toolbar#5862</guid>
  </item> 
  <item>
   <title><![CDATA[&#079;nCreateC&#111;ntrol, edit c&#111;ntrol in toolbar : I have an edit control in my toolbar...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=2002&amp;PID=5850&amp;title=oncreatecontrol-edit-control-in-toolbar#5850</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=775">Maye Johnson</a><br /><strong>Subject:</strong> 2002<br /><strong>Posted:</strong> 21 March 2005 at 9:39pm<br /><br />I have an edit control in my toolbar that was created inOnCreateControl().&nbsp; I want the user to be able to input, hitEnter, and have an action occur.&nbsp; How do I capture the Enter key?]]>
   </description>
   <pubDate>Mon, 21 Mar 2005 21:39:54 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=2002&amp;PID=5850&amp;title=oncreatecontrol-edit-control-in-toolbar#5850</guid>
  </item> 
 </channel>
</rss>