<?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 enable Scrollbar in Ribbon Bar</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Command Bars : How to enable Scrollbar in Ribbon Bar]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Thu, 11 Jun 2026 17:01:20 +0000</pubDate>
  <lastBuildDate>Tue, 11 Nov 2008 21:42:03 +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=12646</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 enable Scrollbar in Ribbon Bar : Hi oleq, Thank you very much...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=12646&amp;PID=42798&amp;title=how-to-enable-scrollbar-in-ribbon-bar#42798</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=4430">lyonwhl</a><br /><strong>Subject:</strong> 12646<br /><strong>Posted:</strong> 11 November 2008 at 9:42pm<br /><br /><P>Hi oleq,</P><DIV>Thank you very much for your advice. I added a message macro,ON_UPDATE_COMMAND_UI(ID_GALLERY_THUMBNAILS,OnEnableButton),then it works.</DIV>]]>
   </description>
   <pubDate>Tue, 11 Nov 2008 21:42:03 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=12646&amp;PID=42798&amp;title=how-to-enable-scrollbar-in-ribbon-bar#42798</guid>
  </item> 
  <item>
   <title><![CDATA[How to enable Scrollbar in Ribbon Bar : Hi,  Guess problem that this...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=12646&amp;PID=42770&amp;title=how-to-enable-scrollbar-in-ribbon-bar#42770</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 12646<br /><strong>Posted:</strong> 11 November 2008 at 1:17am<br /><br />Hi,<DIV>&nbsp;</DIV><DIV>Guess problem that this control is disabled. Add some update handler for control and enable it.</DIV>]]>
   </description>
   <pubDate>Tue, 11 Nov 2008 01:17:07 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=12646&amp;PID=42770&amp;title=how-to-enable-scrollbar-in-ribbon-bar#42770</guid>
  </item> 
  <item>
   <title><![CDATA[How to enable Scrollbar in Ribbon Bar : //added by lyonwhlclass CGalleryItemThumbnail...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=12646&amp;PID=42767&amp;title=how-to-enable-scrollbar-in-ribbon-bar#42767</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=4430">lyonwhl</a><br /><strong>Subject:</strong> 12646<br /><strong>Posted:</strong> 10 November 2008 at 8:07pm<br /><br /><P>//added by lyonwhl<BR>class CGalleryItemThumbnail : public CXTPControlGalleryItem<BR>{<BR>public:<BR>&nbsp;CGalleryItemThumbnail();<BR>public:<BR>&nbsp;//static void AddThumbnailItems(CXTPControlGalleryItems* pItems);<BR>public:<BR>&nbsp;virtual void Draw(CDC* pDC, CXTPControlGallery* pGallery, CRect rcItem, BOOL bEnabled, BOOL bSelected, BOOL bPressed, BOOL bChecked);<BR>private:<BR>&nbsp;CString m_strPictureFile;</P><P>};</P><DIV>&nbsp;</DIV><DIV>CGalleryItemThumbnail::CGalleryItemThumbnail()<BR>{<BR>&nbsp;m_strPictureFile=_T("E:\\pic\\lack.bmp");<BR>}<BR>void CGalleryItemThumbnail::Draw(CDC *pDC, CXTPControlGallery *pGallery, CRect rcItem, BOOL bEnabled, BOOL bSelected, BOOL bPressed, BOOL bChecked)<BR>{<BR>&nbsp;CXTPPaintManager* pPaintManager = pGallery-&gt;GetPaintManager();</DIV><DIV>&nbsp;pPaintManager-&gt;DrawRectangle(pDC, rcItem, bSelected, FALSE, bEnabled, bChecked, FALSE, xtpBarTypePopup, xtpBarPopup);<BR>&nbsp;CWinImage img;<BR>&nbsp;img.load(m_strPictureFile.GetString());<BR>&nbsp;RECT rc={rcItem.left,rcItem.top,rcItem.right,rcItem.bottom};<BR>img.draw(pDC-&gt;m_hDC,rc);<BR>}</DIV>]]>
   </description>
   <pubDate>Mon, 10 Nov 2008 20:07:06 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=12646&amp;PID=42767&amp;title=how-to-enable-scrollbar-in-ribbon-bar#42767</guid>
  </item> 
  <item>
   <title><![CDATA[How to enable Scrollbar in Ribbon Bar : //file: MainFrame.cpp BOOL CM...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=12646&amp;PID=42766&amp;title=how-to-enable-scrollbar-in-ribbon-bar#42766</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=4430">lyonwhl</a><br /><strong>Subject:</strong> 12646<br /><strong>Posted:</strong> 10 November 2008 at 8:03pm<br /><br />//file: MainFrame.cpp<DIV>BOOL CMainFrame::CreateRibbonBar()<BR>{</DIV><DIV>&nbsp;&nbsp;&nbsp;&nbsp; --- ---</DIV><DIV>&nbsp;&nbsp;&nbsp; CXTPRibbonTab* pTabGallery = pRibbonBar-&gt;AddTab(ID_TAB_GALLERIES);</DIV><DIV>&nbsp;</DIV><DIV>//m_pItemsPictures is defined as CXTPControlGalleryItems* m_pItemsPictures&nbsp; in MainFrame.h;</DIV><DIV>m_pItemsPictures=CXTPControlGalleryItems::CreateItems(GetCommandBars(),10000);<BR>&nbsp;&nbsp;m_pItemsPictures-&gt;SetItemSize(CSize(60,50));<BR>&nbsp;&nbsp;for (int nCount=0;nCount&lt;10;++nCount)<BR>&nbsp;&nbsp;{<BR>&nbsp;&nbsp;&nbsp;m_pItemsPictures-&gt;AddItem(new CGalleryItemThumbnail());<BR>&nbsp;&nbsp;}</DIV><DIV>&nbsp;</DIV><DIV>CXTPRibbonGroup* pGroup = pTabGallery-&gt;AddGroup(ID_GROUP_INLINE);<BR>&nbsp;&nbsp;pGroup-&gt;SetControlsCentering(TRUE);<BR>&nbsp;&nbsp;</DIV><DIV>&nbsp;&nbsp;<BR>&nbsp;&nbsp;CXTPControlGallery* pPictureGallery=new CXTPControlGallery();<BR>&nbsp;&nbsp;pPictureGallery-&gt;SetControlSize(CSize(200, 60));<BR>&nbsp;&nbsp;pPictureGallery-&gt;SetResizable();<BR>&nbsp;&nbsp;pPictureGallery-&gt;SetItemsMargin(0, 1, 0, 1);<BR>&nbsp;&nbsp;pPictureGallery-&gt;ShowLabels(FALSE);<BR>&nbsp;&nbsp;pPictureGallery-&gt;ShowScrollBar(TRUE);<BR>&nbsp;&nbsp;pPictureGallery-&gt;ShowBorders(TRUE);<BR>&nbsp;&nbsp;pPictureGallery-&gt;SetItems(m_pItemsPictures);<BR>&nbsp;&nbsp;pGroup-&gt;Add(pPictureGallery,10000);<BR>&nbsp; ---</DIV>]]>
   </description>
   <pubDate>Mon, 10 Nov 2008 20:03:09 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=12646&amp;PID=42766&amp;title=how-to-enable-scrollbar-in-ribbon-bar#42766</guid>
  </item> 
  <item>
   <title><![CDATA[How to enable Scrollbar in Ribbon Bar : Hi, Show some code. ]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=12646&amp;PID=42755&amp;title=how-to-enable-scrollbar-in-ribbon-bar#42755</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 12646<br /><strong>Posted:</strong> 10 November 2008 at 11:31am<br /><br />Hi,<DIV>Show some code.</DIV>]]>
   </description>
   <pubDate>Mon, 10 Nov 2008 11:31:23 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=12646&amp;PID=42755&amp;title=how-to-enable-scrollbar-in-ribbon-bar#42755</guid>
  </item> 
  <item>
   <title><![CDATA[How to enable Scrollbar in Ribbon Bar : Hi I added a gallery which includes...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=12646&amp;PID=42740&amp;title=how-to-enable-scrollbar-in-ribbon-bar#42740</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=4430">lyonwhl</a><br /><strong>Subject:</strong> 12646<br /><strong>Posted:</strong> 10 November 2008 at 4:53am<br /><br />Hi<DIV>I added a gallery which includes dozens of&nbsp; picture items&nbsp;&nbsp;into a Ribbon group ,but the scrollbar on the gallery was unable to use. How to enable it, please help me out.</DIV><DIV><img src="https://forum.codejock.com/uploads/20081110_045041_unabled_scrollb.bmp" border="0"></DIV><DIV>the left one gallery is what I added. The right two are in the samples.</DIV>]]>
   </description>
   <pubDate>Mon, 10 Nov 2008 04:53:37 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=12646&amp;PID=42740&amp;title=how-to-enable-scrollbar-in-ribbon-bar#42740</guid>
  </item> 
 </channel>
</rss>