<?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 : Need help with a simple task panel task</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Toolkit Pro : Need help with a simple task panel task]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Tue, 21 Apr 2026 10:14:29 +0000</pubDate>
  <lastBuildDate>Wed, 22 Jun 2005 20:15:37 +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=2434</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[Need help with a simple task panel task : I have a Task Panel derived from...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=2434&amp;PID=7238&amp;title=need-help-with-a-simple-task-panel-task#7238</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=775">Maye Johnson</a><br /><strong>Subject:</strong> 2434<br /><strong>Posted:</strong> 22 June 2005 at 8:15pm<br /><br />I have a Task Panel derived from CView in my .h file as such:<br><br><table width="99%"><tr><td><pre class="BBcode"><br>class CSimToolboxTaskView : public CView<br>{<br>protected:<br>&nbsp;&nbsp;&nbsp; //{{AFX_MSG(CSimToolboxTaskView)<br>&nbsp;&nbsp;&nbsp; //}}AFX_MSG<br>&nbsp;&nbsp;&nbsp; afx_msg LRESULT OnTaskPanelNotify(WPARAM wParam, LPARAM lParam);<br>&nbsp;&nbsp;&nbsp; DECLARE_MESSAGE_MAP()<br>};<br></pre></td></tr></table><br><br>In the .cpp file, you direct the XTPWM_TASKPANEL_NOTIFY message toexecute your Task Panel Notify function to take different actionsdepending on the ID of the clicked item.<br><br><table width="99%"><tr><td><pre class="BBcode"><br>BEGIN_MESSAGE_MAP(CSimToolboxTaskView, CView)<br>&nbsp;&nbsp;&nbsp; //{{AFX_MSG_MAP(CSimToolboxTaskView)<br>&nbsp;&nbsp;&nbsp; //}}AFX_MSG_MAP<br>&nbsp;&nbsp;&nbsp; ON_MESSAGE(XTPWM_TASKPANEL_NOTIFY, OnTaskPanelNotify)<br>END_MESSAGE_MAP()<br><br>LRESULT CSimToolboxTaskView::OnTaskPanelNotify(WPARAM wParam, LPARAM lParam)<br>{<br>&nbsp;&nbsp;&nbsp; switch (wParam)<br>&nbsp;&nbsp;&nbsp; {<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; case XTP_TPN_CLICK:<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; {<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; CXTPTaskPanelGroupItem* pItem =(CXTPTaskPanelGroupItem*)lParam;<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; TRACE(_T("Click Event: pItem.Caption = %s, pItem.ID= %i\n"), pItem-&gt;GetCaption(), pItem-&gt;GetID());<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; m_pParent-&gt;NotifyToolboxItem(pItem-&gt;GetID(),TRUE);<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; }<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; break;<br><br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; case XTP_TPN_RCLICK:<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; {<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; CXTPTaskPanelItem* pItem =(CXTPTaskPanelItem*)lParam;<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; TRACE(_T("RClick Event: pItem.Caption = %s, pItem.ID= %i\n"), pItem-&gt;GetCaption(), pItem-&gt;GetID());<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; m_pParent-&gt;NotifyToolboxItem(pItem-&gt;GetID(),FALSE);<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; }<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; break;<br>&nbsp;&nbsp;&nbsp; }<br><br>&nbsp;&nbsp;&nbsp; return 0;<br>}<br></pre></td></tr></table><br><br>I have mine get a pointer to the parent class in the OnCreate()function, and then call a function in the parent object telling it theitem that was clicked.&nbsp; The item is the ID that you added to theTask Panel's group via AddGroupItem().<br><br>If you want my source, please let me know and I will email it toyou.&nbsp; It's very easy to use once you know what classes to createand functions to call.&nbsp; The samples from Codejock are very good(it's what I used).<br><br>]]>
   </description>
   <pubDate>Wed, 22 Jun 2005 20:15:37 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=2434&amp;PID=7238&amp;title=need-help-with-a-simple-task-panel-task#7238</guid>
  </item> 
  <item>
   <title><![CDATA[Need help with a simple task panel task : I have been looking over the sample...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=2434&amp;PID=7236&amp;title=need-help-with-a-simple-task-panel-task#7236</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=1243">unit158</a><br /><strong>Subject:</strong> 2434<br /><strong>Posted:</strong> 22 June 2005 at 7:46pm<br /><br />I have been looking over the sample task panel project and such, and have become familiar with how it was created, etc.<br><br>However, I cannot figure out how to actually make the options in thetask panel work. For example, if I wanted one of the options to justcreate a message box saying hello, how would I go about doing this?<br><br>Thanks in advance for any advice / suggestions.<br>]]>
   </description>
   <pubDate>Wed, 22 Jun 2005 19:46:39 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=2434&amp;PID=7236&amp;title=need-help-with-a-simple-task-panel-task#7236</guid>
  </item> 
 </channel>
</rss>