<?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 : Quick Task Panel Questi&#111;n</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Toolkit Pro : Quick Task Panel Questi&#111;n]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Mon, 06 Apr 2026 13:35:17 +0000</pubDate>
  <lastBuildDate>Thu, 09 Mar 2006 10:11: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=3748</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[Quick Task Panel Questi&#111;n : 1. Yes, you can use SendMessage 2....]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=3748&amp;PID=11332&amp;title=quick-task-panel-question#11332</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 3748<br /><strong>Posted:</strong> 09 March 2006 at 10:11am<br /><br /><P>1. Yes, you can use SendMessage</P><P>2. Just something like</P><P>XTPImageManager()-&gt;InternalAddRef();</P><P>m_wndTaskPanel.SetImageManager(XTPImageManager());</P><P>&nbsp;</P>]]>
   </description>
   <pubDate>Thu, 09 Mar 2006 10:11:39 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=3748&amp;PID=11332&amp;title=quick-task-panel-question#11332</guid>
  </item> 
  <item>
   <title><![CDATA[Quick Task Panel Questi&#111;n : I have a CXTPTaskPanel in my CMainFrame...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=3748&amp;PID=11331&amp;title=quick-task-panel-question#11331</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=1003">Warren</a><br /><strong>Subject:</strong> 3748<br /><strong>Posted:</strong> 09 March 2006 at 8:07am<br /><br />I have a CXTPTaskPanel in my CMainFrame and I'm adding items like:<br><br>CXTPTaskPanelGroup* pGroupNew = m_taskPanel.AddGroup(...);<br>pGroupNew-&gt;AddLinkItem(ID_FILE_OPEN, 0);<br>pGroupNew-&gt;AddLinkItem(ID_FILE_NEW, 3);<br><br>Question 1) All of the ID_ items I'm adding are already handled in my app (doc/frame/view), and I just want to have the click notifications handled as if they were picked off of the menu, so I added the following:<br><br>LRESULT CMainFrame::OnTaskPanelNotify(WPARAM wParam, LPARAM lParam)<br>{<br>&nbsp;&nbsp; &nbsp;if(XTP_TPN_CLICK==wParam){<br>&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;CXTPTaskPanelGroupItem* pItem =<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; (CXTPTaskPanelGroupItem*)lParam;&nbsp; <br>&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;PostMessage(WM_COMMAND, pItem-&gt;GetID(), 0);<br>&nbsp;&nbsp; &nbsp;}<br>&nbsp;&nbsp; &nbsp;return 0;<br>}<br><br>a) Is this the correct way to do this?<br>b) Is it okay to use SendMessage instead of PostMessage?<br>c) The helps says:<br>// If the application is to process this message, the return value should be TRUE, otherwise the return value is FALSE.<br>but I wasn't sure what I should return in this case (i.e. what does "process this message" refer to in this context? as the default behaviour doens't seem to do anything?)<br><br>Question 2) Since I'm re-using the IDs from my menus and toolbars, how do I get the images to get loaded from those toolbars?<br>Right now I have to maintain a duplicate image list.<br><br>Thanks<br><br>Warren<br>]]>
   </description>
   <pubDate>Thu, 09 Mar 2006 08:07:47 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=3748&amp;PID=11331&amp;title=quick-task-panel-question#11331</guid>
  </item> 
 </channel>
</rss>