<?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 : Cosmetic &#039;bug&#039; in CXTPPropertyGridItemDate</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Property Grid : Cosmetic &#039;bug&#039; in CXTPPropertyGridItemDate]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Mon, 13 Apr 2026 02:29:21 +0000</pubDate>
  <lastBuildDate>Tue, 13 Feb 2007 14:40:07 +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=6404</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[Cosmetic &#039;bug&#039; in CXTPPropertyGridItemDate : Hi, After a few hours of debugging...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=6404&amp;PID=20385&amp;title=cosmetic-bug-in-cxtppropertygriditemdate#20385</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=109">mgampi</a><br /><strong>Subject:</strong> 6404<br /><strong>Posted:</strong> 13 February 2007 at 2:40pm<br /><br />Hi,<DIV>After a few hours of debugging I found a 'cosmetic bug' in CXTPPropertyGridItemDate::SetValue(). When CXTPPropertyGridItemDate::ParseDateTime fails, SetValue() uses COleDateTime::ParseDateTime() to get a result. This function uses the locale ID provided as third parameter to determine the string format. The function only succeeds, when the string format is in Russian date format. I believe this should be changed to LANG_USER_DEFAULT.</DIV><DIV>I also suggest to NLS enable the date item by default to prevent from always calling SetDateFormat() and SetMask() to get locale dependant date entry.</DIV><DIV><FONT color=#0000ff size=2><P>void</FONT><FONT size=2> CXTPPropertyGridItemDate::SetValue(CString strValue)</P><DIV>{<BR>&nbsp;&nbsp;&nbsp; COleDateTime dt;</DIV><DIV>&nbsp;&nbsp;&nbsp; TRY</DIV><DIV>&nbsp;&nbsp;&nbsp; {</DIV><DIV>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </FONT><FONT color=#0000ff size=2>if</FONT><FONT size=2> (ParseDateTime(dt, strValue))</FONT></DIV><DIV><FONT size=2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {</FONT></DIV><DIV><FONT size=2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; SetDate(dt);</FONT></DIV><DIV><FONT size=2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }</FONT></DIV><DIV><FONT size=2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT color=#0000ff>else</FONT> <FONT color=#0000ff>if</FONT> (dt.ParseDateTime(strValue, VAR_DATEVALUEONLY, <strong><font color=GREEN>LANG_RUSSIAN</FONT></strong>))</FONT></DIV></DIV>]]>
   </description>
   <pubDate>Tue, 13 Feb 2007 14:40:07 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=6404&amp;PID=20385&amp;title=cosmetic-bug-in-cxtppropertygriditemdate#20385</guid>
  </item> 
 </channel>
</rss>