<?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 add a drop down arrow ?</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Toolkit Pro : How to add a drop down arrow ?]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Tue, 21 Apr 2026 19:42:02 +0000</pubDate>
  <lastBuildDate>Thu, 18 Aug 2005 13:21:07 +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=2739</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 add a drop down arrow ? : Yes it can be used without problems....]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=2739&amp;PID=8224&amp;title=how-to-add-a-drop-down-arrow#8224</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 2739<br /><strong>Posted:</strong> 18 August 2005 at 1:21pm<br /><br /><P>Yes it can be used without problems. </P><P>&nbsp;</P><P>ps. Glad you catch how all this work :)</P>]]>
   </description>
   <pubDate>Thu, 18 Aug 2005 13:21:07 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=2739&amp;PID=8224&amp;title=how-to-add-a-drop-down-arrow#8224</guid>
  </item> 
  <item>
   <title><![CDATA[How to add a drop down arrow ? : Thanks oleg. I don&amp;#039;t need...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=2739&amp;PID=8215&amp;title=how-to-add-a-drop-down-arrow#8215</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=1403">Louis</a><br /><strong>Subject:</strong> 2739<br /><strong>Posted:</strong> 18 August 2005 at 9:13am<br /><br /><P>Thanks oleg. I don't need this item to be customized. It is dynamically filled from a list of docking windows (title) that are used to display graphs. When the item is selected the focus is set to the proper commandbar.</P><P>One last question on this topic. To avoid creating control IDs and process them with standard message handling mechanism, I used the technique in the sample DynamicPopups for the favorite control. By using the message&nbsp; map:<FONT size=2></P><P>ON_XTP_EXECUTE(ID_VIEW_GRAPH_ITEM, OnViewGraphItem)</P></FONT><P>i&nbsp;can process the event for the item. To me it all works fine, I just hope it is a good way and no possible conflict. I am working on an existing MFC application that was using the toolbar notification message TBN_DROPDOWN and then using TrackPopupMenu to do this.</P><P>This way I don't need to create a control and use OnCalcDynamicSize. I just do it all in the MainFrame.<FONT size=2></P></FONT><P>If using OnCalcDynamicSize is still a better way let me know.</P><P>many thanks,<BR>Louis.<BR></P>]]>
   </description>
   <pubDate>Thu, 18 Aug 2005 09:13:05 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=2739&amp;PID=8215&amp;title=how-to-add-a-drop-down-arrow#8215</guid>
  </item> 
  <item>
   <title><![CDATA[How to add a drop down arrow ? : Yes, code is ok, but better use...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=2739&amp;PID=8206&amp;title=how-to-add-a-drop-down-arrow#8206</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 2739<br /><strong>Posted:</strong> 18 August 2005 at 4:08am<br /><br /><P>Yes, code is ok, but better use code from DynamicPopups </P><P>see</P><FONT size=2><P>CControlFavorites::OnCalcDynamicSize(..)</P><P>{</P><P>...</P><P>}<BR></P><P>because it will allow to customize this popup by user - to add/remove some buttons.</P><P>&nbsp;</P></FONT>]]>
   </description>
   <pubDate>Thu, 18 Aug 2005 04:08:54 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=2739&amp;PID=8206&amp;title=how-to-add-a-drop-down-arrow#8206</guid>
  </item> 
  <item>
   <title><![CDATA[How to add a drop down arrow ? : Ok, now I got the toolbar button...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=2739&amp;PID=8197&amp;title=how-to-add-a-drop-down-arrow#8197</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=1403">Louis</a><br /><strong>Subject:</strong> 2739<br /><strong>Posted:</strong> 17 August 2005 at 9:30pm<br /><br /><P>Ok, now I got the toolbar button menu to be filled up. Oleg, I just need to know if what I did is a good way of doing this ?</P><P>//Populate dynamically a toolbar button's drop down menu:</P><FONT color=#0000ff size=2><P>void</FONT><FONT size=2> CMainFrame::OnInitCommandsPopup(CXTPPopupBar* pCommandBar)<BR>{<BR>&nbsp;&nbsp;&nbsp; CXTPControlPopup *pPopup = pCommandBar-&gt;GetControlPopup();</P><P></FONT><FONT color=#0000ff size=2>&nbsp;&nbsp;&nbsp; int</FONT><FONT size=2> nPopupID = pPopup-&gt;GetID();</P><P></FONT><FONT color=#0000ff size=2>&nbsp;&nbsp;&nbsp; if</FONT><FONT size=2>( nPopupID == ID_VIEW_GRAPH )<BR>&nbsp;&nbsp;&nbsp; {<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; CXTPControls* pControls = pCommandBar-&gt;GetControls();<BR>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; pControls-&gt;RemoveAll();<BR><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; //Fill items<BR></FONT><FONT size=2>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; <FONT size=2>pControl = pControls-&gt;Add(xtpControlButton, ID_GRAPH1, _T(""), i, TRUE);<BR>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; pControl-&gt;SetCaption(csCaption);<BR><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ...<BR></FONT></FONT><FONT size=2>&nbsp;&nbsp;&nbsp; }</FONT></P><P><FONT size=2>}</P></FONT>]]>
   </description>
   <pubDate>Wed, 17 Aug 2005 21:30:14 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=2739&amp;PID=8197&amp;title=how-to-add-a-drop-down-arrow#8197</guid>
  </item> 
  <item>
   <title><![CDATA[How to add a drop down arrow ? : ok, I managed to get a drop down...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=2739&amp;PID=8194&amp;title=how-to-add-a-drop-down-arrow#8194</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=1403">Louis</a><br /><strong>Subject:</strong> 2739<br /><strong>Posted:</strong> 17 August 2005 at 4:05pm<br /><br /><P>ok, I managed to get a drop down arrow. Find it by looking at the GUI_VisualStudio7 sample. Taking a lot of time to figure out things juts by looking at samples. Wish the doc had more info on key features like this one.</P><P>Now, I need to know how to display a popup menu when the arrow is clicked. The popop menu must be&nbsp;DYNAMICALLY built.</P><P>thanks,<BR>Louis.</P>]]>
   </description>
   <pubDate>Wed, 17 Aug 2005 16:05:37 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=2739&amp;PID=8194&amp;title=how-to-add-a-drop-down-arrow#8194</guid>
  </item> 
  <item>
   <title><![CDATA[How to add a drop down arrow ? : What are the steps to add a drop...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=2739&amp;PID=8191&amp;title=how-to-add-a-drop-down-arrow#8191</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=1403">Louis</a><br /><strong>Subject:</strong> 2739<br /><strong>Posted:</strong> 17 August 2005 at 1:35pm<br /><br /><P>What are the steps to add a drop down arrow to a toolbar button ?</P><P>I have been looking at the samples and did'nt see any using this, maybe I missed it. Can someone tell me what sample has it or describe the stpes here. Also how to get notification to react.</P><P>thanks,<BR>LOuis.</P>]]>
   </description>
   <pubDate>Wed, 17 Aug 2005 13:35:18 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=2739&amp;PID=8191&amp;title=how-to-add-a-drop-down-arrow#8191</guid>
  </item> 
 </channel>
</rss>