<?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 : Problem in status bar scroll control</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Command Bars : Problem in status bar scroll control]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Sat, 30 May 2026 12:23:15 +0000</pubDate>
  <lastBuildDate>Mon, 21 Jul 2008 13:10:53 +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=11506</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[Problem in status bar scroll control : Hi,  Copy code from RibbonVi...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=11506&amp;PID=38637&amp;title=problem-in-status-bar-scroll-control#38637</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 11506<br /><strong>Posted:</strong> 21 July 2008 at 1:10pm<br /><br /><P>Hi,</P><DIV>&nbsp;</DIV><DIV>Copy code from RibbonView:</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;ON_NOTIFY(XTP_SBN_SCROLL, ID_INDICATOR_ZOOMSLIDER, OnZoomSliderScroll)<BR></DIV><DIV><BR>void CRibbonSampleView::OnZoomSliderScroll(NMHDR* pNMHDR, LRESULT* pResult)<BR>{<BR>&nbsp;NMXTPSCROLL* pNMScroll = (NMXTPSCROLL*)pNMHDR;<BR>&nbsp;CXTPStatusBarSliderPane* pPane = DYNAMIC_DOWNCAST(CXTPStatusBarSliderPane, pNMScroll-&gt;pSender);<BR>&nbsp;if (!pPane)<BR>&nbsp;&nbsp;return;</DIV><DIV>&nbsp;int nZoom = m_nZoom;</DIV><DIV>&nbsp;switch (pNMScroll-&gt;nSBCode)<BR>&nbsp;{<BR>&nbsp;&nbsp;case SB_TOP: nZoom = 10; break;<BR>&nbsp;&nbsp;case SB_BOTTOM: nZoom = 500; break;</DIV><DIV>&nbsp;&nbsp;case SB_LINEUP: nZoom = max(((nZoom / 10) - 1) * 10, 10); break;<BR>&nbsp;&nbsp;case SB_LINEDOWN: nZoom = min(((nZoom / 10) + 1) * 10, 500); break;</DIV><DIV>&nbsp;&nbsp;case SB_THUMBTRACK: nZoom = PosToZoom(pNMScroll-&gt;nPos); if (nZoom &gt; 90 &amp;&amp; nZoom &lt; 150) nZoom = 100; break;</DIV><DIV>&nbsp;&nbsp;case SB_PAGEUP: nZoom = max(nZoom - 10, 10); break;<BR>&nbsp;&nbsp;case SB_PAGEDOWN: nZoom = min(nZoom + 10, 500); break;<BR>&nbsp;}</DIV><DIV>&nbsp;if (nZoom == m_nZoom)<BR>&nbsp;&nbsp;return;</DIV><DIV>&nbsp;m_nZoom = nZoom;<BR>&nbsp;<BR>&nbsp;pPane-&gt;SetPos(ZoomToPos(nZoom));</DIV><DIV>&nbsp;CXTPStatusBar* pStatusBar = pPane-&gt;GetStatusBar();<BR>&nbsp;<BR>&nbsp;CXTPStatusBarPane* pPaneZoomIndicator = pStatusBar-&gt;FindPane(ID_INDICATOR_ZOOM);</DIV><DIV>&nbsp;CString strZoom;<BR>&nbsp;strZoom.Format(_T("%i%%"), m_nZoom);<BR>&nbsp;pPaneZoomIndicator-&gt;SetText(strZoom);</DIV><DIV>&nbsp;SendMessage(EM_SETZOOM, m_nZoom, 100);</DIV><DIV>}</DIV>]]>
   </description>
   <pubDate>Mon, 21 Jul 2008 13:10:53 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=11506&amp;PID=38637&amp;title=problem-in-status-bar-scroll-control#38637</guid>
  </item> 
  <item>
   <title><![CDATA[Problem in status bar scroll control : Hello, We have already purchased...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=11506&amp;PID=38612&amp;title=problem-in-status-bar-scroll-control#38612</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=4248">vijaymahajan</a><br /><strong>Subject:</strong> 11506<br /><strong>Posted:</strong> 21 July 2008 at 4:33am<br /><br />Hello,<DIV>We have already purchased your library,we have the login password also,Only activation is&nbsp;to be&nbsp;done.</DIV><DIV>Anyway,</DIV><DIV>I have created a slider control on a status bar.</DIV><DIV>i write&nbsp; ON_NOTIFY()&nbsp; event handler for it. we have our zoomIn() and ZoomOut() functions.I just have to map the slider left-right movement to these functions.</DIV><DIV>Can i check the left and right movement of slider in ON_NOTIFY() event?</DIV><DIV>or is it compulsary to write the OnScroll() method for it?</DIV><DIV>I tried as follows in the ON_NOTIFY() event,But it wasnt working.</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV><DIV><FONT size=2><P>NMXTPSCROLL* pNMScroll = (NMXTPSCROLL*)pNMHDR;CXTPStatusBarSliderPane* pPane = DYNAMIC_DOWNCAST(CXTPStatusBarSliderPane, pNMScroll-&gt;pSender);</FONT><FONT color=#0000ff size=2>if</FONT><FONT size=2> (!pPane)</FONT><FONT color=#0000ff size=2>return</FONT><FONT size=2>;</P><DIV><FONT color=#0000ff size=2><P>if</FONT><FONT size=2>(pNMScroll-&gt;nSBCode == SB_LINERIGHT) AfxGetMainWnd()-&gt;SendMessage(WM_COMMAND, ID_ZOOM_IN,0);</P><P></FONT><FONT color=#0000ff size=2>if</FONT><FONT size=2>(pNMScroll-&gt;nSBCode == SB_LINERIGHT)AfxGetMainWnd()-&gt;SendMessage(WM_COMMAND, ID_ZOOM_OUT,0);</P></FONT></FONT></DIV></DIV><DIV>&nbsp;</DIV>]]>
   </description>
   <pubDate>Mon, 21 Jul 2008 04:33:08 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=11506&amp;PID=38612&amp;title=problem-in-status-bar-scroll-control#38612</guid>
  </item> 
 </channel>
</rss>