<?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 : CXTPDatePickerC&#111;ntrol &#079;nButt&#111;nClick</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Calendar : CXTPDatePickerC&#111;ntrol &#079;nButt&#111;nClick]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Wed, 22 Apr 2026 19:12:20 +0000</pubDate>
  <lastBuildDate>Wed, 20 Jul 2005 17:17:56 +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=2610</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[CXTPDatePickerC&#111;ntrol &#079;nButt&#111;nClick : I tried Option 1 and it did the...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=2610&amp;PID=7770&amp;title=cxtpdatepickercontrol-onbuttonclick#7770</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=1331">tjohnson</a><br /><strong>Subject:</strong> 2610<br /><strong>Posted:</strong> 20 July 2005 at 5:17pm<br /><br />I tried Option 1 and it did the trick.&nbsp; Thanks!]]>
   </description>
   <pubDate>Wed, 20 Jul 2005 17:17:56 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=2610&amp;PID=7770&amp;title=cxtpdatepickercontrol-onbuttonclick#7770</guid>
  </item> 
  <item>
   <title><![CDATA[CXTPDatePickerC&#111;ntrol &#079;nButt&#111;nClick : Hi,   There seems to be 2 ways...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=2610&amp;PID=7769&amp;title=cxtpdatepickercontrol-onbuttonclick#7769</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=862">sserge</a><br /><strong>Subject:</strong> 2610<br /><strong>Posted:</strong> 20 July 2005 at 4:19pm<br /><br />Hi, <br /><br />There seems to be 2 ways to break modal loop in your case:<br /> <br />1. <br /><table width="99%"><tr><td><pre class="BBcode"><br />SendMessageToParent(XTP_NC_DATEPICKER_SELECTION_CHANGED);<br /></pre></td></tr></table><br /> <br />2.<br /><table width="99%"><tr><td><pre class="BBcode"><br />&nbsp;&nbsp;&nbsp;&nbsp;if(m_bIsModal)<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; EndModalLoop(0);<br /></pre></td></tr></table><br /><br />--<br />WBR,<br />Serge]]>
   </description>
   <pubDate>Wed, 20 Jul 2005 16:19:05 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=2610&amp;PID=7769&amp;title=cxtpdatepickercontrol-onbuttonclick#7769</guid>
  </item> 
  <item>
   <title><![CDATA[CXTPDatePickerC&#111;ntrol &#079;nButt&#111;nClick : I&amp;#039;m trying to add functionality...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=2610&amp;PID=7759&amp;title=cxtpdatepickercontrol-onbuttonclick#7759</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=1331">tjohnson</a><br /><strong>Subject:</strong> 2610<br /><strong>Posted:</strong> 20 July 2005 at 9:32am<br /><br /><P>I'm trying to add functionality to a button added to my CXTPDatePickerControl via the AddButton method.&nbsp; From what I can tell, I should be able to override the OnButtonClick method to do this.&nbsp; What&nbsp;I have works, more or less, except that I'm trying to use this control as it is used in the provided sample, that is as part of a CComboBox and popup window.&nbsp; The normal Today and None buttons, after they are clicked, cause the call to GoModal to return.&nbsp; When my custom button is clicked, the actions I've coded execute (i.e. the date selection changes), but the GoModal call doesn't return.&nbsp; I'm sure there is some call or message sending I'm missing, but I don't know what it is.&nbsp; Can you tell me what I'm missing?</P><P>Here is the code I have so far in my OnButtonClick method&nbsp;(be gentle, I'm new to MFC and C++ in general): </P><FONT size=2><P><table width="99%"><tr><td><pre class="BBcode"></FONT></P><P><FONT color=#0000ff size=2>if</FONT><FONT size=2>(id == IDS_ButtonText){</P><P>NMHDR d; </P><P>d.code = NM_CLICK;</P><P>d.idFrom = IDS_ButtonText;</P><P>d.hwndFrom = m_hWnd;</P><P>COleDateTime birthday;</P><P>birthday.ParseDateTime("4/30/1979");</P><P>EnsureVisible(birthday);</P><P>Select(birthday);</P><P>SendMessageToParent(XTP_NC_DATEPICKER_BUTTON_CLICK, &amp;d);</P><P>}</P><P></FONT><FONT color=#0000ff size=2>else</FONT><FONT size=2>{CXTPDatePickerControl::OnButtonClick(id); }</FONT></P><P><FONT size=2></pre></td></tr></table></FONT><FONT size=2></P></FONT><span style="font-size:10px"><br /><br />Edited by tjohnson</span>]]>
   </description>
   <pubDate>Wed, 20 Jul 2005 09:32:47 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=2610&amp;PID=7759&amp;title=cxtpdatepickercontrol-onbuttonclick#7759</guid>
  </item> 
 </channel>
</rss>