<?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 : SetEditStyle(ES_NUMBER) = no effect</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Command Bars : SetEditStyle(ES_NUMBER) = no effect]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Wed, 10 Jun 2026 12:11:01 +0000</pubDate>
  <lastBuildDate>Thu, 23 Apr 2009 03:08:36 +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=14109</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[SetEditStyle(ES_NUMBER) = no effect : Yes, so please add the ASSERT...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=14109&amp;PID=48269&amp;title=seteditstylees-number-no-effect#48269</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2198">znakeeye</a><br /><strong>Subject:</strong> 14109<br /><strong>Posted:</strong> 23 April 2009 at 3:08am<br /><br />Yes, so please add the ASSERT above. You should check for ES_NUMBER, ES_PASSWORD etc...<DIV>&nbsp;</DIV><DIV>But, I still think it should be possible to explicitly use CEdit where needed!</DIV>]]>
   </description>
   <pubDate>Thu, 23 Apr 2009 03:08:36 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=14109&amp;PID=48269&amp;title=seteditstylees-number-no-effect#48269</guid>
  </item> 
  <item>
   <title><![CDATA[SetEditStyle(ES_NUMBER) = no effect : Hi,  The thing that our Edit...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=14109&amp;PID=48262&amp;title=seteditstylees-number-no-effect#48262</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 14109<br /><strong>Posted:</strong> 23 April 2009 at 2:43am<br /><br />Hi,<DIV>&nbsp;</DIV><DIV>The thing that our Edit in CommandBars is actually RichEdit - but it doesn't support ES_NUMBER style :(</DIV>]]>
   </description>
   <pubDate>Thu, 23 Apr 2009 02:43:46 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=14109&amp;PID=48262&amp;title=seteditstylees-number-no-effect#48262</guid>
  </item> 
  <item>
   <title><![CDATA[SetEditStyle(ES_NUMBER) = no effect : XTP 13.  Consider this: pCo...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=14109&amp;PID=48251&amp;title=seteditstylees-number-no-effect#48251</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2198">znakeeye</a><br /><strong>Subject:</strong> 14109<br /><strong>Posted:</strong> 22 April 2009 at 6:28pm<br /><br /><DIV>XTP 13.</DIV><DIV>&nbsp;</DIV><DIV>Consider this:</DIV><DIV>pControlEdit-&gt;SetEditStyle(pControlEdit-&gt;GetEditStyle() | <strong>ES_NUMBER</strong>);</DIV><DIV>&nbsp;</DIV><DIV>ES_NUMBER has no effect!</DIV><DIV>&nbsp;</DIV><DIV>BOOL CXTPCommandBarEditCtrl::CreateEdit(DWORD <strong>dwStyle</strong>, CWnd* pParentWnd)<BR>{<BR>&nbsp;&nbsp;&nbsp; if (<strong>GetRichEditContext().m_hInstance</strong>)<BR>&nbsp;&nbsp;&nbsp; {</DIV><DIV>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <strong><FONT color=#ff0000>//&nbsp;Please add this to start with:</FONT></strong></DIV><DIV><strong><FONT color=#ff0000>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ASSERT((dwStyle &amp; (all&nbsp;CEdit-only styles)) == 0);</FONT></strong></DIV><DIV><strong><FONT color=#ff0000>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </FONT></strong><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; BOOL bResult = CWnd::Create(GetRichEditContext().m_strClassName, 0, dwStyle, CRect(0, 0, 0, 0), pParentWnd, 0);<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; SendMessage(EM_SETEVENTMASK, 0, ENM_CHANGE);<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; SendMessage(EM_SETTEXTMODE, TM_PLAINTEXT | TM_SINGLELEVELUNDO);</DIV><P>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; return bResult;<BR>&nbsp;&nbsp;&nbsp; }</P><P>&nbsp;&nbsp;&nbsp; return Create(dwStyle, CRect(0, 0, 0, 0), pParentWnd, 0);<BR>}</P><DIV>&nbsp;</DIV><DIV>Secondly, it seems I cannot explicitly use CEdit here. That's bad... (I don't want to override the control for such a small thing!)</DIV>]]>
   </description>
   <pubDate>Wed, 22 Apr 2009 18:28:50 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=14109&amp;PID=48251&amp;title=seteditstylees-number-no-effect#48251</guid>
  </item> 
 </channel>
</rss>