<?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 : Custom Controls</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Controls : Custom Controls]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Wed, 13 May 2026 08:30:32 +0000</pubDate>
  <lastBuildDate>Wed, 16 Mar 2011 03:00:46 +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=18058</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[Custom Controls : ok thanks, something like that...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=18058&amp;PID=63335&amp;title=custom-controls#63335</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6562">dalai</a><br /><strong>Subject:</strong> 18058<br /><strong>Posted:</strong> 16 March 2011 at 3:00am<br /><br />ok thanks, something like that would be useful in CXTPMaskEdit? instead I handled<br><br>BOOL CControlEditHHMMSSCtrl::CheckChar(TCHAR&amp; nChar, int nPos)<br><br>to check characters<br>]]>
   </description>
   <pubDate>Wed, 16 Mar 2011 03:00:46 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=18058&amp;PID=63335&amp;title=custom-controls#63335</guid>
  </item> 
  <item>
   <title><![CDATA[Custom Controls : Hi;Take a look at boost::regex!I...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=18058&amp;PID=63323&amp;title=custom-controls#63323</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=109">mgampi</a><br /><strong>Subject:</strong> 18058<br /><strong>Posted:</strong> 15 March 2011 at 8:56am<br /><br />Hi;<br><br>Take a look at boost::regex!<br>I solved it this way:<br><br><table width="99%"><tr><td><pre class="BBcode">bool CXRTimeCtrl::CheckTime( const CString&amp; strTemp ) const<br>{<br>&nbsp;&nbsp;&nbsp; if (strTemp.IsEmpty() &amp;&amp; bAllowEmptyTime_)<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; return true;<br><br>&nbsp;&nbsp;&nbsp; std::string strIn=strTemp;<br>&nbsp;&nbsp;&nbsp; static const boost::regex exprFull("^((&#091;0-1&#093;&#091;0-9&#093;)|(&#091;1-2&#093;&#091;0-3&#093;)):(&#091;0-5&#093;&#091;0-9&#093;):(&#091;0-5&#093;&#091;0-9&#093;)$");<br>&nbsp;&nbsp;&nbsp; static const boost::regex exprReduced("^((&#091;0-1&#093;&#091;0-9&#093;)|(&#091;1-2&#093;&#091;0-3&#093;)):(&#091;0-5&#093;&#091;0-9&#093;)$");<br>&nbsp;&nbsp;&nbsp; boost::smatch what;<br>&nbsp;&nbsp;&nbsp; bool bResult=false;<br>&nbsp;&nbsp;&nbsp; if (bShowSeconds_)<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; bResult=boost::regex_match(strIn, what, exprFull, boost::match_default | boost::match_partial)==true;<br>&nbsp;&nbsp;&nbsp; else<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; bResult=boost::regex_match(strIn, what, exprReduced, boost::match_default | boost::match_partial)==true;<br>&nbsp;&nbsp;&nbsp; bError_= (bResult==false || what&#091;0&#093;.matched==false);<br>&nbsp;&nbsp;&nbsp; return bResult;<br>}</pre></td></tr></table><br>]]>
   </description>
   <pubDate>Tue, 15 Mar 2011 08:56:50 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=18058&amp;PID=63323&amp;title=custom-controls#63323</guid>
  </item> 
  <item>
   <title><![CDATA[Custom Controls :  how do I limit HH to 0-23 and...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=18058&amp;PID=63319&amp;title=custom-controls#63319</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6562">dalai</a><br /><strong>Subject:</strong> 18058<br /><strong>Posted:</strong> 15 March 2011 at 6:36am<br /><br />how do I limit HH to 0-23 and MM to 0-59 ?< id="gwProxy" ="">< ="jsCall;" id="jsProxy" =""><div id="ref"></div>]]>
   </description>
   <pubDate>Tue, 15 Mar 2011 06:36:02 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=18058&amp;PID=63319&amp;title=custom-controls#63319</guid>
  </item> 
  <item>
   <title><![CDATA[Custom Controls :  I opened this for anyone who...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=18058&amp;PID=63318&amp;title=custom-controls#63318</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6562">dalai</a><br /><strong>Subject:</strong> 18058<br /><strong>Posted:</strong> 15 March 2011 at 6:09am<br /><br />I opened this for anyone who would like to share their custom controls starting with HH:MM ...<br><br>class CControlEditHHMMCtrl : public CXTPMaskEditT&lt;CXTPControlEditCtrl&gt;<br>{<br>public:<br>&nbsp;&nbsp;&nbsp; afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);<br>&nbsp;&nbsp;&nbsp; DECLARE_MESSAGE_MAP()<br>};<br><br>class CControlEditHHMM: public CXTPControlEdit<br>{<br>&nbsp;&nbsp;&nbsp; DECLARE_XTP_CONTROL(CControlEditHHMM)<br>public:<br>&nbsp;&nbsp;&nbsp; CXTPControlEditCtrl* CreateEditControl()<br>&nbsp;&nbsp;&nbsp; {<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; return new CControlEditHHMMCtrl();<br>&nbsp;&nbsp;&nbsp; }<br>};<br><br>BEGIN_MESSAGE_MAP(CControlEditHHMMCtrl, CXTPMaskEditT&lt;CXTPControlEditCtrl&gt;)<br>&nbsp;&nbsp;&nbsp; ON_MASKEDIT_REFLECT()<br>&nbsp;&nbsp;&nbsp; ON_WM_CREATE()<br>END_MESSAGE_MAP()<br><br>IMPLEMENT_XTP_CONTROL(CControlEditHHMM, CXTPControlEdit)<br><br>int CControlEditHHMMCtrl::OnCreate(LPCREATESTRUCT lpCreateStruct)<br>{<br>&nbsp;&nbsp;&nbsp; SetEditMask(_T("00:00"), _T("__:__"), _T("00:00"));<br>&nbsp;&nbsp;&nbsp; return CXTPMaskEditT&lt;CXTPControlEditCtrl&gt;::OnCreate(lpCreateStruct);<br>}<br><br><br>< id="gwProxy" ="">< ="jsCall;" id="jsProxy" =""><div id="ref"></div>]]>
   </description>
   <pubDate>Tue, 15 Mar 2011 06:09:34 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=18058&amp;PID=63318&amp;title=custom-controls#63318</guid>
  </item> 
 </channel>
</rss>