<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Scrollbar spielt bei hohen Werten total verrückt :(]]></title><description><![CDATA[<p>Hallo,<br />
Habe bei mir eine Scrollbar eingebaut.<br />
Dieses funktioniert auch generell prima.</p>
<p>Einziges mir total unverständliches Problem:</p>
<pre><code class="language-cpp">case SB_THUMBPOSITION:
		case SB_THUMBTRACK:
			int x = HIWORD(wParam);
</code></pre>
<p>Hier hole ich mir die aktuelle Position.<br />
Das funzt auch bei &quot;kleineren&quot; Werten.<br />
Ist von der Scrollbar aber der nMax größer (um die 100000),<br />
dann kommt hier ein total unsinniger Wert an, sobald man<br />
ans Ende scrollt.<br />
(Bei 100000 kommt 34445)<br />
Woran könnte das liegen?</p>
<p>Gruss,<br />
Thommy</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/77969/scrollbar-spielt-bei-hohen-werten-total-verrückt</link><generator>RSS for Node</generator><lastBuildDate>Sat, 11 Apr 2026 21:44:46 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/77969.rss" rel="self" type="application/rss+xml"/><pubDate>Sat, 26 Jun 2004 12:50:51 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Scrollbar spielt bei hohen Werten total verrückt :( on Sat, 26 Jun 2004 12:50:51 GMT]]></title><description><![CDATA[<p>Hallo,<br />
Habe bei mir eine Scrollbar eingebaut.<br />
Dieses funktioniert auch generell prima.</p>
<p>Einziges mir total unverständliches Problem:</p>
<pre><code class="language-cpp">case SB_THUMBPOSITION:
		case SB_THUMBTRACK:
			int x = HIWORD(wParam);
</code></pre>
<p>Hier hole ich mir die aktuelle Position.<br />
Das funzt auch bei &quot;kleineren&quot; Werten.<br />
Ist von der Scrollbar aber der nMax größer (um die 100000),<br />
dann kommt hier ein total unsinniger Wert an, sobald man<br />
ans Ende scrollt.<br />
(Bei 100000 kommt 34445)<br />
Woran könnte das liegen?</p>
<p>Gruss,<br />
Thommy</p>
]]></description><link>https://www.c-plusplus.net/forum/post/548424</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/548424</guid><dc:creator><![CDATA[ThommyLee]]></dc:creator><pubDate>Sat, 26 Jun 2004 12:50:51 GMT</pubDate></item><item><title><![CDATA[Reply to Scrollbar spielt bei hohen Werten total verrückt :( on Sat, 26 Jun 2004 13:03:42 GMT]]></title><description><![CDATA[<p>Ich merk grad, daß liegt wohl an der unsigned 2-Bit Grenze <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f61e.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--disappointed_face"
      title=":("
      alt="😞"
    /><br />
Kann man nicht höher scrollen als<br />
65535 ??</p>
<p>Gibt es da einen Trick, wie es doch geht?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/548429</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/548429</guid><dc:creator><![CDATA[ThommyLee]]></dc:creator><pubDate>Sat, 26 Jun 2004 13:03:42 GMT</pubDate></item><item><title><![CDATA[Reply to Scrollbar spielt bei hohen Werten total verrückt :( on Sat, 26 Jun 2004 13:32:43 GMT]]></title><description><![CDATA[<p>probiers doch mal so:</p>
<pre><code class="language-cpp">SCROLLINFO si;
si.cbSize = sizeof(si);
si.fMask = SIF_TRACKPOS;
GetScrollInfo(hwnd,SB_VERT,&amp;si);
x=si.nTrackPos;
</code></pre>
<p>Gruss,<br />
Stefan</p>
]]></description><link>https://www.c-plusplus.net/forum/post/548434</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/548434</guid><dc:creator><![CDATA[StefanvT]]></dc:creator><pubDate>Sat, 26 Jun 2004 13:32:43 GMT</pubDate></item></channel></rss>