<?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 : How to select date/time under the cursor</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Calendar : How to select date/time under the cursor]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Wed, 13 May 2026 20:29:51 +0000</pubDate>
  <lastBuildDate>Wed, 20 May 2009 21:05:22 +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=14015</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[How to select date/time under the cursor : No, I haven&amp;#039;t tried the sample,...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=14015&amp;PID=49222&amp;title=how-to-select-date-time-under-the-cursor#49222</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=760">dennisV</a><br /><strong>Subject:</strong> 14015<br /><strong>Posted:</strong> 20 May 2009 at 9:05pm<br /><br />No, I haven't tried the sample, but looks good :) I'm waiting for 13.1...]]>
   </description>
   <pubDate>Wed, 20 May 2009 21:05:22 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=14015&amp;PID=49222&amp;title=how-to-select-date-time-under-the-cursor#49222</guid>
  </item> 
  <item>
   <title><![CDATA[How to select date/time under the cursor : btw - did you trythis sample h...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=14015&amp;PID=49221&amp;title=how-to-select-date-time-under-the-cursor#49221</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=4721">mdoubson</a><br /><strong>Subject:</strong> 14015<br /><strong>Posted:</strong> 20 May 2009 at 8:49pm<br /><br />btw - did you try&nbsp;this sample <a href="http://forum.codejock.com/forum_posts.asp?TID=14354" target="_blank">http://forum.codejock.com/forum_posts.asp?TID=14354</A>&nbsp;today? Check DayView (or WorkWeekView...) PrintPreview and Print]]>
   </description>
   <pubDate>Wed, 20 May 2009 20:49:46 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=14015&amp;PID=49221&amp;title=how-to-select-date-time-under-the-cursor#49221</guid>
  </item> 
  <item>
   <title><![CDATA[How to select date/time under the cursor : You can also make this (Highlighting)...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=14015&amp;PID=49218&amp;title=how-to-select-date-time-under-the-cursor#49218</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=4721">mdoubson</a><br /><strong>Subject:</strong> 14015<br /><strong>Posted:</strong> 20 May 2009 at 8:16pm<br /><br />You can also make this (Highlighting) action optional if use extra condition (both mouse buttons pressed) <DIV><FONT size=2><P></FONT><FONT color=#0000ff size=2>if (</FONT><FONT size=2>&nbsp;GetKeyState(VK_LBUTTON) == 1) { -- DO YOUR HIGHLIGHTING }</P><P>-- NOW&nbsp;POPUP YOUR MENU</P><P></FONT><FONT size=2>&nbsp;</P></FONT></DIV>]]>
   </description>
   <pubDate>Wed, 20 May 2009 20:16:45 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=14015&amp;PID=49218&amp;title=how-to-select-date-time-under-the-cursor#49218</guid>
  </item> 
  <item>
   <title><![CDATA[How to select date/time under the cursor : The code above actually does that....]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=14015&amp;PID=49217&amp;title=how-to-select-date-time-under-the-cursor#49217</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=760">dennisV</a><br /><strong>Subject:</strong> 14015<br /><strong>Posted:</strong> 20 May 2009 at 7:01pm<br /><br />The code above actually does that. What I found is that after the XTP_NC_CALENDARRBUTTONDOWN is processed, the XTP_NC_CALENDARCONTEXTMENU is sent, so everything works as I want - a user presses the right mouse button, a spot in the view is selected and the context menu comes up.]]>
   </description>
   <pubDate>Wed, 20 May 2009 19:01:02 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=14015&amp;PID=49217&amp;title=how-to-select-date-time-under-the-cursor#49217</guid>
  </item> 
  <item>
   <title><![CDATA[How to select date/time under the cursor : So you did not find a way to do...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=14015&amp;PID=49216&amp;title=how-to-select-date-time-under-the-cursor#49216</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=4721">mdoubson</a><br /><strong>Subject:</strong> 14015<br /><strong>Posted:</strong> 20 May 2009 at 6:44pm<br /><br />So you did not find a way to do it on right buton down event only - hightlight + context menu&nbsp;in one action...]]>
   </description>
   <pubDate>Wed, 20 May 2009 18:44:08 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=14015&amp;PID=49216&amp;title=how-to-select-date-time-under-the-cursor#49216</guid>
  </item> 
  <item>
   <title><![CDATA[How to select date/time under the cursor : there isn&amp;#039;t much code really...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=14015&amp;PID=49215&amp;title=how-to-select-date-time-under-the-cursor#49215</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=760">dennisV</a><br /><strong>Subject:</strong> 14015<br /><strong>Posted:</strong> 20 May 2009 at 6:37pm<br /><br />there isn't much code really :) All I've got is the following (in the OnEvent_Calendar function):<br><br>&nbsp;&nbsp;&nbsp; else if (XTP_NC_CALENDARRBUTTONDOWN == Event)<br>&nbsp;&nbsp;&nbsp; {<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; mouse_event(MOUSEEVENTF_LEFTDOWN, ptHit.x, ptHit.y, 0, 0);<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; mouse_event(MOUSEEVENTF_LEFTUP, ptHit.x, ptHit.y, 0, 0);<br>&nbsp;&nbsp;&nbsp; }<br>&nbsp;&nbsp;&nbsp; else if (XTP_NC_CALENDARCONTEXTMENU == Event)<br>&nbsp;&nbsp;&nbsp; {<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; if (bHitTest)<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; {<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; CPoint ptMenu = ptHit;<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; GetCalendarCtrl().ClientToScreen(&amp;ptMenu);<br><br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; if(hitInfo.pViewEvent)<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; {<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; hitInfo.pViewEvent-&gt;SetSelected(TRUE);<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; GetCalendarCtrl().RedrawControl();<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; }<br><br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; CMenu menu;<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; VERIFY(menu.LoadMenu(IDR_MENU_CONTEXT_PLANNER));<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; CMenu * popupMenu = menu.GetSubMenu(0);<br><br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; // track menu<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; int nMenuResult = CXTPCommandBars::TrackPopupMenu(popupMenu, <br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; /*TPM_NONOTIFY |*/ TPM_RETURNCMD | TPM_LEFTALIGN |TPM_RIGHTBUTTON, <br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; ptMenu.x, ptMenu.y, this, NULL);<br><br>]]>
   </description>
   <pubDate>Wed, 20 May 2009 18:37:22 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=14015&amp;PID=49215&amp;title=how-to-select-date-time-under-the-cursor#49215</guid>
  </item> 
  <item>
   <title><![CDATA[How to select date/time under the cursor : Good. Send me your solution -...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=14015&amp;PID=49214&amp;title=how-to-select-date-time-under-the-cursor#49214</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=4721">mdoubson</a><br /><strong>Subject:</strong> 14015<br /><strong>Posted:</strong> 20 May 2009 at 6:21pm<br /><br />Good. Send me your solution - may be we can use it as option]]>
   </description>
   <pubDate>Wed, 20 May 2009 18:21:15 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=14015&amp;PID=49214&amp;title=how-to-select-date-time-under-the-cursor#49214</guid>
  </item> 
  <item>
   <title><![CDATA[How to select date/time under the cursor : Yep, that did the trick, thanks...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=14015&amp;PID=49213&amp;title=how-to-select-date-time-under-the-cursor#49213</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=760">dennisV</a><br /><strong>Subject:</strong> 14015<br /><strong>Posted:</strong> 20 May 2009 at 6:19pm<br /><br />Yep, that did the trick, thanks :)]]>
   </description>
   <pubDate>Wed, 20 May 2009 18:19:00 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=14015&amp;PID=49213&amp;title=how-to-select-date-time-under-the-cursor#49213</guid>
  </item> 
  <item>
   <title><![CDATA[How to select date/time under the cursor :  mouse_event(MOUSEEVENTF_LEFTDOWN,...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=14015&amp;PID=49162&amp;title=how-to-select-date-time-under-the-cursor#49162</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=4721">mdoubson</a><br /><strong>Subject:</strong> 14015<br /><strong>Posted:</strong> 19 May 2009 at 6:00pm<br /><br /><FONT size=2><P></FONT><FONT size=2><FONT color=#000000>mouse_event(MOUSEEVENTF_LEFTDOWN, ptHit.x, ptHit.y, 0, 0);</FONT></P></FONT><FONT size=2><P></FONT><FONT color=#008000 size=2><FONT color=#000000>mouse_event(MOUSEEVENTF_LEFTUP, ptHit.x, ptHit.y, 0, 0);</FONT></P></FONT>]]>
   </description>
   <pubDate>Tue, 19 May 2009 18:00:39 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=14015&amp;PID=49162&amp;title=how-to-select-date-time-under-the-cursor#49162</guid>
  </item> 
  <item>
   <title><![CDATA[How to select date/time under the cursor : I&amp;#039;ve added the following...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=14015&amp;PID=49160&amp;title=how-to-select-date-time-under-the-cursor#49160</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=760">dennisV</a><br /><strong>Subject:</strong> 14015<br /><strong>Posted:</strong> 19 May 2009 at 4:51pm<br /><br />I've added the following code, but it doesn't help either:<br><br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; DWORD dwPoint = MAKELONG(ptHit.x, ptHit.y);<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; GetCalendarCtrl().SendMessage(WM_LBUTTONDOWN, MK_LBUTTON, dwPoint);<br><br><br>]]>
   </description>
   <pubDate>Tue, 19 May 2009 16:51:59 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=14015&amp;PID=49160&amp;title=how-to-select-date-time-under-the-cursor#49160</guid>
  </item> 
 </channel>
</rss>