<?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 : Cancel the visibility of the CXTPPopupBar menu</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Command Bars : Cancel the visibility of the CXTPPopupBar menu]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Wed, 13 May 2026 14:36:40 +0000</pubDate>
  <lastBuildDate>Mon, 29 Sep 2014 14:18:16 +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=22423</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[Cancel the visibility of the CXTPPopupBar menu : Hi,I create an &amp;#034;blank&amp;#034;...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=22423&amp;PID=72799&amp;title=cancel-the-visibility-of-the-cxtppopupbar-menu#72799</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=4319">sdancer75</a><br /><strong>Subject:</strong> 22423<br /><strong>Posted:</strong> 29 September 2014 at 2:18pm<br /><br /><div>Hi,</div><div><br></div><div>I create an "blank" items popup control "<span style="font-size: small; line-height: 18.2000007629395px;">ControlButtonPopup" like below :</span></div><div><br></div><div><br></div><div><div><font size="1"><span ="Apple-tab-span" style="white-space: pre;">		</span>m_pPopupHistory = (CXTPControlPopup*)pGroup0-&gt;Add(xtpControlButtonPopup, ID_POPUP_HISTORY);&nbsp;</font></div><div><font size="1"><span ="Apple-tab-span" style="white-space:pre">		</span>pPopupBar = CXTPPopupBar::CreatePopupBar(GetCommandBars());</font></div><div><font size="1"><span ="Apple-tab-span" style="white-space:pre">		</span>pPopupBar-&gt;SetShowGripper(FALSE);<span ="Apple-tab-span" style="line-height: 1.4; white-space: pre;">	</span></font></div><div><font size="1"><span ="Apple-tab-span" style="line-height: 1.4; white-space: pre;">		</span><span style="line-height: 1.4;">m_pPopupHistory-&gt;SetCommandBar(pPopupBar);</span></font></div><div><font size="1"><span ="Apple-tab-span" style="white-space: pre;">		</span>pPopupBar-&gt;InternalRelease();</font></div></div><div><br></div><div>because I want to fill the control with items dynamically at a later time. So, I dont want to show up an empty popup menu, for that reason, I check the items count with the code below :</div><div><br></div><div><font size="1">void CMainFrame::OnInitCommandsPopup(CXTPPopupBar* pCommandBar) {</font></div><div><div><font size="1">&nbsp; &nbsp; &nbsp;CXTPControls* pControls = pCommandBar-&gt;GetControls();</font></div><div>&nbsp; &nbsp;&nbsp;<span style="font-size: x-small; line-height: 1.4;">if (pCommandBar == (CXTPPopupBar*)m_pPopupHistory-&gt;GetCommandBar()) {</span></div><div><font size="1"><span ="Apple-tab-span" style="white-space:pre">		</span>nItemsCount = pControls-&gt;GetCount();<span ="Apple-tab-span" style="white-space:pre">	</span></font></div><div><font size="1"><span ="Apple-tab-span" style="white-space:pre">		</span>if (nItemsCount == 0) {</font></div><div><font size="1"><span ="Apple-tab-span" style="white-space:pre">			</span>AfxMessageBox(_T("There are no items yet !!"));</font></div><div><span ="Apple-tab-span" style="white-space:pre"><font size="1">			</font></span></div><div><font size="1"><span ="Apple-tab-span" style="white-space:pre">		</span>}</font></div><div><font size="1"><span ="Apple-tab-span" style="white-space:pre">	</span>}</font></div></div><div><font size="1">}</font></div><div><br></div><div>The problem is that I can not block the control to show up the empty popup menu. Is there any way to cancel the visibility of the popup menu ?</div><div><br></div><div>Regards,</div><div><br></div><div><br></div><div><br></div><div><br></div>]]>
   </description>
   <pubDate>Mon, 29 Sep 2014 14:18:16 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=22423&amp;PID=72799&amp;title=cancel-the-visibility-of-the-cxtppopupbar-menu#72799</guid>
  </item> 
 </channel>
</rss>