<?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 : Intercepting the mouse click</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Task Panel : Intercepting the mouse click]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Fri, 06 Mar 2026 22:11:57 +0000</pubDate>
  <lastBuildDate>Thu, 28 Sep 2006 05:19:42 +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=5139</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[Intercepting the mouse click : Thanks alot for all your advices....]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=5139&amp;PID=16144&amp;title=intercepting-the-mouse-click#16144</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2291">afekhar</a><br /><strong>Subject:</strong> 5139<br /><strong>Posted:</strong> 28 September 2006 at 5:19am<br /><br />Thanks alot for all your advices. I want to intercept the click on a panel group (not item) and the click events sent by the control are for panel items only. I'll try to create a wrapper class as you suggested.]]>
   </description>
   <pubDate>Thu, 28 Sep 2006 05:19:42 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=5139&amp;PID=16144&amp;title=intercepting-the-mouse-click#16144</guid>
  </item> 
  <item>
   <title><![CDATA[Intercepting the mouse click : You can also subscribe to the...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=5139&amp;PID=16132&amp;title=intercepting-the-mouse-click#16132</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2156">jfstephe</a><br /><strong>Subject:</strong> 5139<br /><strong>Posted:</strong> 27 September 2006 at 2:25pm<br /><br />You can also subscribe to the event that are raised. E.g. <DIV>&nbsp;</DIV><DIV>in .h</DIV><DIV>&nbsp;</DIV><DIV>afx_msg void OnItemClickTaskpanel1(LPDISPATCH Item);</DIV><DIV>afx_msg void OnGroupExpandedTaskpanel1(LPDISPATCH Group);</DIV><DIV>&nbsp;</DIV><DIV>in .cpp</DIV><DIV><BR>BEGIN_EVENTSINK_MAP(CCodejockDlg, CDialog)<BR>&nbsp;&nbsp;&nbsp; //{{AFX_EVENTSINK_MAP(CCodejockDlg)<BR>&nbsp;ON_EVENT(CCodejockDlg, IDC_TASKPANEL1, 1 /* ItemClick */, OnItemClickTaskpanel1, VTS_DISPATCH)<BR>&nbsp;ON_EVENT(CCodejockDlg, IDC_TASKPANEL1, 6 /* GroupExpanded */, OnGroupExpandedTaskpanel1, VTS_DISPATCH)<BR>&nbsp;//}}AFX_EVENTSINK_MAP<BR>END_EVENTSINK_MAP()</DIV><DIV>&nbsp;</DIV><DIV>void CCodejockDlg::OnItemClickTaskpanel1(LPDISPATCH Item) <BR>{<BR>// handler</DIV><DIV>}</DIV><DIV>&nbsp;</DIV><DIV>You could do this by hand but again it's easily done tthrough the class wizard.<BR></DIV>]]>
   </description>
   <pubDate>Wed, 27 Sep 2006 14:25:50 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=5139&amp;PID=16132&amp;title=intercepting-the-mouse-click#16132</guid>
  </item> 
  <item>
   <title><![CDATA[Intercepting the mouse click : Hmm. That&amp;#039;s a bit wierd. Check...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=5139&amp;PID=16131&amp;title=intercepting-the-mouse-click#16131</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2156">jfstephe</a><br /><strong>Subject:</strong> 5139<br /><strong>Posted:</strong> 27 September 2006 at 12:35pm<br /><br />Hmm. That's a bit wierd.<DIV>Check out <a href="http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vbenlr98/html/vamsgCantCreate&#079;bject.asp" target="_blank">http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vbenlr98/html/vamsgCantCreateObject.asp</A></DIV><DIV>and make sure the activeX object is registered.&nbsp; Perhaps this is license file related (again see the link).</DIV><DIV>&nbsp;</DIV><DIV>Are you using VS6 or 7?</DIV><DIV>&nbsp;</DIV><DIV>I take it you inserted the activex control by right&nbsp;clicking on the dialog selecting 'Insert ActiveX Control...' and selecting the control from the dialog?</DIV><DIV>&nbsp;</DIV><DIV>If you did all that then I think something is knackered. Sorry. I would suggest sorting out your activex instantiated object problem before continuing.</DIV><DIV>J</DIV>]]>
   </description>
   <pubDate>Wed, 27 Sep 2006 12:35:32 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=5139&amp;PID=16131&amp;title=intercepting-the-mouse-click#16131</guid>
  </item> 
  <item>
   <title><![CDATA[Intercepting the mouse click : Just one tip and it will be ok,...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=5139&amp;PID=16130&amp;title=intercepting-the-mouse-click#16130</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2291">afekhar</a><br /><strong>Subject:</strong> 5139<br /><strong>Posted:</strong> 27 September 2006 at 12:25pm<br /><br />Just one tip and it will be ok, I tried to put the taskpanel activex on a dialog (in the resource view) in order to use the classwizard and create a wrapper class, but the problem is that VStudio refuse that by displaying a message "This activex can't be instantiated". Is there another means to create a wrapper class ?<br><br>Thank you very much for your help.<br>]]>
   </description>
   <pubDate>Wed, 27 Sep 2006 12:25:32 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=5139&amp;PID=16130&amp;title=intercepting-the-mouse-click#16130</guid>
  </item> 
  <item>
   <title><![CDATA[Intercepting the mouse click : Yeah, it shouldn&amp;#039;t be a problem,...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=5139&amp;PID=16129&amp;title=intercepting-the-mouse-click#16129</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2156">jfstephe</a><br /><strong>Subject:</strong> 5139<br /><strong>Posted:</strong> 27 September 2006 at 12:08pm<br /><br />Yeah, it shouldn't be a problem, that's what I'm using.<DIV>The easiest way to do it is:</DIV><DIV>Associate a member variable to your activeX object via ClassWizard. It'll say that it need to generate the TaskPanel wrapper classes for you - change the name/location of these as you see fit.</DIV><DIV>You now have a member variable to play with and it's of type CTaskPanel.</DIV><DIV>&nbsp;</DIV><DIV>Add a new generic MFC class derived from CWnd (CMyTaskPanel). ('Insert' -&gt; 'New Class')</DIV><DIV>&nbsp;</DIV><DIV>Change the base class of CMyTaskPanel from CWnd to CTaskPanel.</DIV><DIV>&nbsp;</DIV><DIV>The job should indeed now be a good one :-).</DIV><DIV>&nbsp;</DIV><DIV>Right click on your class in 'ClassView' and add a windows message handler for the message you want.</DIV><DIV>&nbsp;</DIV><DIV>Like I said, if this doesn't seem to catch the message you can override PreTranslateMessage in CMyTaskPanel e.g.</DIV><DIV>&nbsp;</DIV><DIV><BR>BOOL CMyTaskPanel ::PreTranslateMessage( MSG* pMsg )<BR>{<BR>&nbsp; if (pMsg-&gt;message == WM_KEYDOWN)<BR>&nbsp; {<BR>&nbsp;&nbsp;&nbsp;&nbsp;// I've caught a key press<BR>&nbsp; }</DIV><DIV>&nbsp; return CTaskPanel::PreTranslateMessage(pMsg);<BR>}<BR></DIV>]]>
   </description>
   <pubDate>Wed, 27 Sep 2006 12:08:54 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=5139&amp;PID=16129&amp;title=intercepting-the-mouse-click#16129</guid>
  </item> 
  <item>
   <title><![CDATA[Intercepting the mouse click : Thanks alot, but I use the ActiveX...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=5139&amp;PID=16128&amp;title=intercepting-the-mouse-click#16128</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2291">afekhar</a><br /><strong>Subject:</strong> 5139<br /><strong>Posted:</strong> 27 September 2006 at 11:59am<br /><br />Thanks alot, but I use the ActiveX version. Don't you know if i can wrap the activex with a window class or something ?]]>
   </description>
   <pubDate>Wed, 27 Sep 2006 11:59:35 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=5139&amp;PID=16128&amp;title=intercepting-the-mouse-click#16128</guid>
  </item> 
  <item>
   <title><![CDATA[Intercepting the mouse click : This willwork for VC++: If you...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=5139&amp;PID=16127&amp;title=intercepting-the-mouse-click#16127</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2156">jfstephe</a><br /><strong>Subject:</strong> 5139<br /><strong>Posted:</strong> 27 September 2006 at 11:50am<br /><br /><P>This will&nbsp;work for VC++:</P><DIV>If you derive a class from CTaskPanel you can capture the messages it sees. Try to react to the click event by&nbsp;implementing &nbsp;the appropriate message handler, if that doesn't work, override PreTranslateMessage and get the click event that way.</DIV><DIV>&nbsp;</DIV>]]>
   </description>
   <pubDate>Wed, 27 Sep 2006 11:50:14 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=5139&amp;PID=16127&amp;title=intercepting-the-mouse-click#16127</guid>
  </item> 
  <item>
   <title><![CDATA[Intercepting the mouse click : How can I intercept the left mouse...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=5139&amp;PID=16050&amp;title=intercepting-the-mouse-click#16050</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2291">afekhar</a><br /><strong>Subject:</strong> 5139<br /><strong>Posted:</strong> 25 September 2006 at 9:20am<br /><br />How can I intercept the left mouse click on a TaskPanelGroup header?<br><br>Any tip will be greatly appreciated,<br><br>Thanks.<br>]]>
   </description>
   <pubDate>Mon, 25 Sep 2006 09:20:16 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=5139&amp;PID=16050&amp;title=intercepting-the-mouse-click#16050</guid>
  </item> 
 </channel>
</rss>