<?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 : Month Calendar Double Click</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Controls : Month Calendar Double Click]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Wed, 13 May 2026 08:46:18 +0000</pubDate>
  <lastBuildDate>Tue, 18 Nov 2008 21:29:39 +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=12703</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[Month Calendar Double Click : Glad to help tom...Here&amp;#039;s...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=12703&amp;PID=42955&amp;title=month-calendar-double-click#42955</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2676">jpbro</a><br /><strong>Subject:</strong> 12703<br /><strong>Posted:</strong> 18 November 2008 at 9:29pm<br /><br />Glad to help tom...<br><br>Here's where I found the MonthView constants in case anyone is interested:<br><br><a href="http://notmyspace.info/run/Include/DateTimeC&#111;nstants.au3" target="_blank">http://notmyspace.info/run/Include/DateTimeConstants.au3</a><br>]]>
   </description>
   <pubDate>Tue, 18 Nov 2008 21:29:39 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=12703&amp;PID=42955&amp;title=month-calendar-double-click#42955</guid>
  </item> 
  <item>
   <title><![CDATA[Month Calendar Double Click : For the 12.1 release? ]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=12703&amp;PID=42954&amp;title=month-calendar-double-click#42954</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=4227">tomurphy</a><br /><strong>Subject:</strong> 12703<br /><strong>Posted:</strong> 18 November 2008 at 9:24pm<br /><br />For the 12.1 release?]]>
   </description>
   <pubDate>Tue, 18 Nov 2008 21:24:59 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=12703&amp;PID=42954&amp;title=month-calendar-double-click#42954</guid>
  </item> 
  <item>
   <title><![CDATA[Month Calendar Double Click : Maybe CJ can add HitTest method....]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=12703&amp;PID=42953&amp;title=month-calendar-double-click#42953</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2113">ijwelch</a><br /><strong>Subject:</strong> 12703<br /><strong>Posted:</strong> 18 November 2008 at 8:09pm<br /><br />Maybe CJ can add HitTest method.]]>
   </description>
   <pubDate>Tue, 18 Nov 2008 20:09:39 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=12703&amp;PID=42953&amp;title=month-calendar-double-click#42953</guid>
  </item> 
  <item>
   <title><![CDATA[Month Calendar Double Click : Thanks for that mate I&amp;#039;ll...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=12703&amp;PID=42952&amp;title=month-calendar-double-click#42952</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=4227">tomurphy</a><br /><strong>Subject:</strong> 12703<br /><strong>Posted:</strong> 18 November 2008 at 6:23pm<br /><br /><DIV>Thanks for that mate I'll give it a go!</DIV><DIV>&nbsp;</DIV><DIV>Cheers, </DIV><DIV>Tom</DIV>]]>
   </description>
   <pubDate>Tue, 18 Nov 2008 18:23:06 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=12703&amp;PID=42952&amp;title=month-calendar-double-click#42952</guid>
  </item> 
  <item>
   <title><![CDATA[Month Calendar Double Click : I looked around the web to see...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=12703&amp;PID=42947&amp;title=month-calendar-double-click#42947</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2676">jpbro</a><br /><strong>Subject:</strong> 12703<br /><strong>Posted:</strong> 18 November 2008 at 1:46pm<br /><br />I looked around the web to see if I could find any information on MonthView messages, and luckily I discovered one called MCM_HITTEST that looked promising. After a bit of digging &amp; experimentation, I came up with this code that should do what you require (only count the double-click when on a date, or on the Today link):<br><br><table width="99%"><tr><td><pre class="BBcode"><br>Option Explicit<br><br>Private Type POINTAPI<br>&nbsp;&nbsp; x As Long<br>&nbsp;&nbsp; y As Long<br>End Type<br><br>Private Type SYSTEMTIME<br>&nbsp;&nbsp; wYear As Integer<br>&nbsp;&nbsp; wMonth As Integer<br>&nbsp;&nbsp; wDayOfWeek As Integer<br>&nbsp;&nbsp; wDay As Integer<br>&nbsp;&nbsp; wHour As Integer<br>&nbsp;&nbsp; wMinute As Integer<br>&nbsp;&nbsp; wSecond As Integer<br>&nbsp;&nbsp; wMilliseconds As Integer<br>End Type<br><br>Private Type MCHITTESTINFO<br>&nbsp;&nbsp; Size As Long<br>&nbsp;&nbsp; Point As POINTAPI<br>&nbsp;&nbsp; HitItem As Long<br>&nbsp;&nbsp; HitDate As SYSTEMTIME<br>End Type<br><br>Private Declare Function SendMessage Lib "user32" Alias "SendMessageA" (ByVal hwnd As Long, ByVal wMsg As Long, ByVal wParam As Long, lParam As Any) As Long<br>Private Declare Function GetCursorPos Lib "user32" (lpPoint As POINTAPI) As Long<br>Private Declare Function ScreenToClient Lib "user32" (ByVal hwnd As Long, lpPoint As POINTAPI) As Long<br><br>Private Const MCM_FIRST As Long = &amp;H1000<br>Private Const MCM_HITTEST As Long = (MCM_FIRST + 14)<br><br>Private Const MCHT_CalendarDate As Long = &amp;H20001<br>Private Const MCHT_CalendarToday As Long = &amp;H30000<br><br>Private Sub MonthCalendar1_DblClick()<br>&nbsp;&nbsp; Dim l_Pt As POINTAPI<br>&nbsp;&nbsp; Dim l_Hit As MCHITTESTINFO<br>&nbsp;&nbsp; <br>&nbsp;&nbsp; GetCursorPos l_Pt<br>&nbsp;&nbsp; ScreenToClient Me.MonthCalendar1.hwnd, l_Pt<br>&nbsp;&nbsp; <br>&nbsp;&nbsp; With l_Hit<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; .Size = LenB(l_Hit)<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; .Point.x = l_Pt.x<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; .Point.y = l_Pt.y<br>&nbsp;&nbsp; End With<br>&nbsp;&nbsp; SendMessage Me.MonthCalendar1.hwnd, MCM_HITTEST, 0, l_Hit<br>&nbsp;&nbsp; <br>&nbsp;&nbsp; Select Case l_Hit.HitItem<br>&nbsp;&nbsp; Case MCHT_CalendarDate<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; MsgBox "Double-clicked a date on the calendar: " &amp; Format$(Me.MonthCalendar1.Value, "Long Date")<br>&nbsp;&nbsp; Case MCHT_CalendarToday<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; MsgBox "Double-clicked the ""Today"" link", vbOKOnly<br>&nbsp;&nbsp; End Select<br>End Sub<br></pre></td></tr></table><br>]]>
   </description>
   <pubDate>Tue, 18 Nov 2008 13:46:57 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=12703&amp;PID=42947&amp;title=month-calendar-double-click#42947</guid>
  </item> 
  <item>
   <title><![CDATA[Month Calendar Double Click : yes :( ]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=12703&amp;PID=42932&amp;title=month-calendar-double-click#42932</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 12703<br /><strong>Posted:</strong> 18 November 2008 at 6:26am<br /><br />yes :(]]>
   </description>
   <pubDate>Tue, 18 Nov 2008 06:26:11 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=12703&amp;PID=42932&amp;title=month-calendar-double-click#42932</guid>
  </item> 
  <item>
   <title><![CDATA[Month Calendar Double Click : Thanks for the reply Oleg, I take...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=12703&amp;PID=42930&amp;title=month-calendar-double-click#42930</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=4227">tomurphy</a><br /><strong>Subject:</strong> 12703<br /><strong>Posted:</strong> 18 November 2008 at 5:55am<br /><br />Thanks for the reply Oleg, I take it that means there's nothing you or I do can do?<DIV>&nbsp;</DIV><DIV>Cheers</DIV><DIV>Tom</DIV>]]>
   </description>
   <pubDate>Tue, 18 Nov 2008 05:55:51 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=12703&amp;PID=42930&amp;title=month-calendar-double-click#42930</guid>
  </item> 
  <item>
   <title><![CDATA[Month Calendar Double Click : Hi, It works like Calendar Control...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=12703&amp;PID=42922&amp;title=month-calendar-double-click#42922</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 12703<br /><strong>Posted:</strong> 18 November 2008 at 3:53am<br /><br />Hi,<DIV>It works like Calendar Control from Microsoft common controls.</DIV>]]>
   </description>
   <pubDate>Tue, 18 Nov 2008 03:53:32 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=12703&amp;PID=42922&amp;title=month-calendar-double-click#42922</guid>
  </item> 
  <item>
   <title><![CDATA[Month Calendar Double Click : Hi      I am using version...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=12703&amp;PID=42912&amp;title=month-calendar-double-click#42912</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=4227">tomurphy</a><br /><strong>Subject:</strong> 12703<br /><strong>Posted:</strong> 17 November 2008 at 6:54pm<br /><br />Hi<DIV></DIV><DIV></DIV><DIV></DIV><DIV></DIV><DIV>&nbsp;</DIV><DIV>I am using version 12.0.0 and am finding a mouse double click anywhere in the month calendar control calls OnDblClick.&nbsp; Shouldn't this only be called when double clicking on an actual day??</DIV><DIV>&nbsp;</DIV><DIV>Cheers</DIV><DIV>Tom</DIV><DIV>&nbsp;</DIV><DIV>CodeJock Com Suite 12.0.0</DIV><DIV>Visual Dataflex 14.0</DIV>]]>
   </description>
   <pubDate>Mon, 17 Nov 2008 18:54:26 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=12703&amp;PID=42912&amp;title=month-calendar-double-click#42912</guid>
  </item> 
 </channel>
</rss>