<?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 : mousewheel in CXTPControlEdit</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Command Bars : mousewheel in CXTPControlEdit]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Sat, 13 Jun 2026 12:58:46 +0000</pubDate>
  <lastBuildDate>Thu, 29 Jul 2010 02:49:54 +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=14901</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[mousewheel in CXTPControlEdit : Thanks!  ]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=14901&amp;PID=59524&amp;title=mousewheel-in-cxtpcontroledit#59524</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3268">vjedlicka</a><br /><strong>Subject:</strong> 14901<br /><strong>Posted:</strong> 29 July 2010 at 2:49am<br /><br />Thanks!<br /> <img src="http://forum.codejock.com/smileys/smiley20.gif" border="0" align="middle"> ]]>
   </description>
   <pubDate>Thu, 29 Jul 2010 02:49:54 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=14901&amp;PID=59524&amp;title=mousewheel-in-cxtpcontroledit#59524</guid>
  </item> 
  <item>
   <title><![CDATA[mousewheel in CXTPControlEdit : Yes. Codejock control can be treatedlikestandard...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=14901&amp;PID=59459&amp;title=mousewheel-in-cxtpcontroledit#59459</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=4824">Satyen</a><br /><strong>Subject:</strong> 14901<br /><strong>Posted:</strong> 27 July 2010 at 5:05am<br /><br />Yes. Codejock control can be treated&nbsp;like&nbsp;standard windows controls&nbsp;(e.g. spinner on a dialog). You will need to implement mousewheel&nbsp;event. <DIV>Do something like this -</DIV><DIV>&nbsp;</DIV><DIV><FONT color=#008000><FONT color=#008000><P><FONT size=2>// Scroll Handling.</FONT></P><DIV></FONT></FONT><FONT size=2>BOOL CSpinnerCtrl::OnHookMouseWheel(UINT nFlags, <FONT color=#0000ff><FONT color=#0000ff>short</FONT></FONT> zDelta, CPoint point)</FONT></DIV><DIV><FONT size=2>{</FONT></DIV><P><FONT size=2><FONT color=#0000ff><FONT color=#0000ff>&nbsp;&nbsp;int</FONT></FONT> nVal = 0;</FONT></P><P><FONT size=2>&nbsp;&nbsp;CString strSelection = GetEditText();</FONT></P><P><FONT size=2><FONT color=#0000ff><FONT color=#0000ff>&nbsp;&nbsp;if</FONT></FONT>(zDelta &gt; 0) <FONT color=#008000><FONT color=#008000>// Increased</P></FONT></FONT></FONT><P><FONT size=2>&nbsp; {</FONT></P><P><FONT size=2>&nbsp; nVal = (<FONT color=#0000ff><FONT color=#0000ff>int</FONT></FONT>)((<FONT color=#0000ff><FONT color=#0000ff>int</FONT></FONT>)_tstoi(strSelection) + 1);</FONT></P><P><FONT size=2>&nbsp; }<BR><FONT color=#0000ff><FONT color=#0000ff>&nbsp; else</FONT></FONT> <FONT color=#008000><FONT color=#008000>// Decreased</P></FONT></FONT></FONT><P><FONT size=2>&nbsp; {</FONT></P><P><FONT size=2>&nbsp;&nbsp;&nbsp; nVal = (<FONT color=#0000ff><FONT color=#0000ff>int</FONT></FONT>)((<FONT color=#0000ff><FONT color=#0000ff>int</FONT></FONT>)_tstoi(strSelection) - 1);</FONT></P><P><FONT size=2>&nbsp;&nbsp; }</FONT></P><P><FONT size=2>&nbsp;&nbsp; CXTPControlEdit::OnHookMouseWheel(nFlags, zDelta, point);</FONT></P><P><FONT size=2><FONT color=#0000ff><FONT color=#0000ff>&nbsp;&nbsp; return</FONT></FONT> TRUE;<BR>}</FONT></P></DIV><DIV>&nbsp;</DIV>]]>
   </description>
   <pubDate>Tue, 27 Jul 2010 05:05:36 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=14901&amp;PID=59459&amp;title=mousewheel-in-cxtpcontroledit#59459</guid>
  </item> 
  <item>
   <title><![CDATA[mousewheel in CXTPControlEdit : Hello,   I need an editbox with...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=14901&amp;PID=51567&amp;title=mousewheel-in-cxtpcontroledit#51567</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3268">vjedlicka</a><br /><strong>Subject:</strong> 14901<br /><strong>Posted:</strong> 04 August 2009 at 3:05am<br /><br />Hello, <DIV>&nbsp;</DIV><DIV>I need an editbox with spin buttons&nbsp;on a tooolbar - exactly as demonstrated in the CommandBarsControls sample.</DIV><DIV>&nbsp;</DIV><DIV><table width="99%"><tr><td><pre class="BBcode"></DIV><DIV>&nbsp;CXTPControlEdit* pControlEdit = (CXTPControlEdit*)pToolBarEdit-&gt;GetControls()-&gt;Add(xtpControlEdit, ID_FILE_NEW);<BR>&nbsp;pControlEdit-&gt;ShowSpinButtons(TRUE);</DIV><DIV></pre></td></tr></table></DIV><DIV>&nbsp;</DIV><DIV>Is it possible to add mousewheel support, so that users can change the numerical value by the mouse wheel?</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV>]]>
   </description>
   <pubDate>Tue, 04 Aug 2009 03:05:42 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=14901&amp;PID=51567&amp;title=mousewheel-in-cxtpcontroledit#51567</guid>
  </item> 
 </channel>
</rss>