<?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!!]]></title><description><![CDATA[<p>Hallo,<br />
ich habe wieder einmal ene Frage.<br />
Visual Studio fügt meinem Programm eine Vertikale Scrollbar hinzu sobald genügend Steuerelemente vorhanden sind, die also über den unteren Bidschirmrand hinausgehen.<br />
Nun benötige ich eine Methode um rauszufinden wieviele Pixel der Screen nach unten gescrollt wurde.</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/169123/scrollbar</link><generator>RSS for Node</generator><lastBuildDate>Wed, 29 Apr 2026 00:35:05 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/169123.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 02 Jan 2007 11:30:30 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to ScrollBar!! on Tue, 02 Jan 2007 11:30:30 GMT]]></title><description><![CDATA[<p>Hallo,<br />
ich habe wieder einmal ene Frage.<br />
Visual Studio fügt meinem Programm eine Vertikale Scrollbar hinzu sobald genügend Steuerelemente vorhanden sind, die also über den unteren Bidschirmrand hinausgehen.<br />
Nun benötige ich eine Methode um rauszufinden wieviele Pixel der Screen nach unten gescrollt wurde.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1201027</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1201027</guid><dc:creator><![CDATA[maRKus23]]></dc:creator><pubDate>Tue, 02 Jan 2007 11:30:30 GMT</pubDate></item><item><title><![CDATA[Reply to ScrollBar!! on Tue, 02 Jan 2007 11:33:29 GMT]]></title><description><![CDATA[<p>Was hast Du denn für ein Programm? SDI mit CFormView? Du bekommst WM_VSCROLL Nachrichten gesendet, wenn gerollt wird. Gleichfalls kannst Du GetScrllInfo aufrufen, ebenfalls gibt es ja noch die CScrollView Funktionen der MFC wenn Du einen CFormView verwendest!</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1201030</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1201030</guid><dc:creator><![CDATA[Martin Richter]]></dc:creator><pubDate>Tue, 02 Jan 2007 11:33:29 GMT</pubDate></item><item><title><![CDATA[Reply to ScrollBar!! on Tue, 02 Jan 2007 11:36:13 GMT]]></title><description><![CDATA[<p>SDI mit CFormView</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1201033</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1201033</guid><dc:creator><![CDATA[maRKus23]]></dc:creator><pubDate>Tue, 02 Jan 2007 11:36:13 GMT</pubDate></item><item><title><![CDATA[Reply to ScrollBar!! on Tue, 02 Jan 2007 11:42:00 GMT]]></title><description><![CDATA[<p>Und wie kann ich der Scrollbar einen eventhandler zufügen?<br />
Wie heisst dieses ScrollbarObjekt? Ich habe es ja nicht selber erstellt.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1201036</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1201036</guid><dc:creator><![CDATA[maRKus23]]></dc:creator><pubDate>Tue, 02 Jan 2007 11:42:00 GMT</pubDate></item><item><title><![CDATA[Reply to ScrollBar!! on Tue, 02 Jan 2007 11:49:24 GMT]]></title><description><![CDATA[<p>Afaik bekommt nicht der Scrollbar diesen Event, sondern das übergeordnete Fenster (also dein View-Objekt).</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1201040</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1201040</guid><dc:creator><![CDATA[CStoll]]></dc:creator><pubDate>Tue, 02 Jan 2007 11:49:24 GMT</pubDate></item><item><title><![CDATA[Reply to ScrollBar!! on Tue, 02 Jan 2007 11:52:01 GMT]]></title><description><![CDATA[<p>Also immer wenn ich scrolle soll CFormView::GetScrollBarInfo aufgerufen werden.<br />
Also dachte ich, ich muss der Scrollbar ein eventhandler zufügen, oder wie soll das sonst funktionieren??</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1201044</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1201044</guid><dc:creator><![CDATA[maRKus23]]></dc:creator><pubDate>Tue, 02 Jan 2007 11:52:01 GMT</pubDate></item><item><title><![CDATA[Reply to ScrollBar!! on Tue, 02 Jan 2007 12:30:25 GMT]]></title><description><![CDATA[<p>Ich habe nun folgendes hinzugefügt, doch leider fehlt mir ein Parameter:</p>
<pre><code class="language-cpp">void CParView::OnVScroll(UINT nSBCode, UINT nPos, CScrollBar* pScrollBar)
{
	CFormView::GetScrollInfo(SB_VERT, ??????, SIF_ALL);
	CFormView::OnVScroll(nSBCode, nPos, pScrollBar);
}

typedef struct tagSCROLLINFO { 
    UINT cbSize; 
    UINT fMask; 
    int  nMin; 
    int  nMax; 
    UINT nPage; 
    int  nPos; 
    int  nTrackPos; 
	}   SCROLLINFO, *LPSCROLLINFO; 
typedef SCROLLINFO CONST *LPCSCROLLINFO;
</code></pre>
<p>Wie funktioniert das mit dem Pointer auf LPSCROLLINFO??</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1201074</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1201074</guid><dc:creator><![CDATA[maRKus23]]></dc:creator><pubDate>Tue, 02 Jan 2007 12:30:25 GMT</pubDate></item><item><title><![CDATA[Reply to ScrollBar!! on Tue, 02 Jan 2007 12:38:03 GMT]]></title><description><![CDATA[<p>Erstmal brauchst du die Struktur nicht von Hand zu definieren - die steht schon so in den WinAPI-Headern.</p>
<p>Und zweitens mußt du dir stattdessen eine Variable von dem Typ anlegen:</p>
<pre><code class="language-cpp">void CParView::OnVScroll(UINT nSBCode, UINT nPos, CScrollBar* pScrollBar)
{
    SCROLLINFO si;
    CFormView::GetScrollInfo(SB_VERT, &amp;si, SIF_ALL);
    TRACE(&quot;Scroll to Position %d\n&quot;,si.nPos);
    ...

    CFormView::OnVScroll(nSBCode, nPos, pScrollBar);
}
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/1201077</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1201077</guid><dc:creator><![CDATA[CStoll]]></dc:creator><pubDate>Tue, 02 Jan 2007 12:38:03 GMT</pubDate></item><item><title><![CDATA[Reply to ScrollBar!! on Tue, 02 Jan 2007 12:54:03 GMT]]></title><description><![CDATA[<p>maRKus23 schrieb:</p>
<blockquote>
<p>SDI mit CFormView</p>
</blockquote>
<p>Nochmal grundsätzlich: Was ist Dein Problem? SDI mit CFormView macht alles automatisch. Was baruchst Du?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1201087</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1201087</guid><dc:creator><![CDATA[Martin Richter]]></dc:creator><pubDate>Tue, 02 Jan 2007 12:54:03 GMT</pubDate></item><item><title><![CDATA[Reply to ScrollBar!! on Wed, 03 Jan 2007 08:14:27 GMT]]></title><description><![CDATA[<p>Ich brauchte eine Methode die mir die Anzahl der gerollten Pixel liefert.<br />
Ich habe das dann so gemacht:</p>
<pre><code class="language-cpp">void CParView::OnVScroll(UINT nSBCode, UINT nPos, CScrollBar* pScrollBar)
{	
         SCROLLINFO scrollinfo;
	CFormView::GetScrollInfo(SB_VERT,&amp;scrollinfo, SIF_ALL);
	CFormView::OnVScroll(nSBCode, nPos, pScrollBar);
}
</code></pre>
<p>wenn ich nähmlich scrolle und dann die Fenster neuzeichnen lasse, befinden sie sich nicht mehr an der Stelle an der sie sein solten, da die Client-area verschoben wurde.</p>
<p>Also mach ich das so:</p>
<pre><code class="language-cpp">for(j=0; j&lt;5; j++)pointWindowPos[0][j].SetPoint(0, iYPos[0][j] - scrollinfo.nTrackPos);
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/1201585</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1201585</guid><dc:creator><![CDATA[maRKus23]]></dc:creator><pubDate>Wed, 03 Jan 2007 08:14:27 GMT</pubDate></item><item><title><![CDATA[Reply to ScrollBar!! on Wed, 03 Jan 2007 09:42:29 GMT]]></title><description><![CDATA[<p>Das neuzeichnenklappt also ncith? Wie machst Du das?<br />
IMHO sorgt auch hier CScrollView für die korrekte Behandlung und Einstellung des DCs mit OnPrepareDC.<br />
Du musst in Deinem WM_PAINT Handler hier entsprechend reagieren. Nicht wenn gerollt wird.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1201649</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1201649</guid><dc:creator><![CDATA[Martin Richter]]></dc:creator><pubDate>Wed, 03 Jan 2007 09:42:29 GMT</pubDate></item><item><title><![CDATA[Reply to ScrollBar!! on Wed, 03 Jan 2007 11:20:02 GMT]]></title><description><![CDATA[<p>So wie ich es gemacht habe klappt jetzt alles <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f642.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--slightly_smiling_face"
      title=":-)"
      alt="🙂"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/post/1201743</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1201743</guid><dc:creator><![CDATA[maRKus23]]></dc:creator><pubDate>Wed, 03 Jan 2007 11:20:02 GMT</pubDate></item><item><title><![CDATA[Reply to ScrollBar!! on Wed, 03 Jan 2007 11:21:26 GMT]]></title><description><![CDATA[<p>Was heißt IMHO?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1201747</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1201747</guid><dc:creator><![CDATA[maRKus23]]></dc:creator><pubDate>Wed, 03 Jan 2007 11:21:26 GMT</pubDate></item><item><title><![CDATA[Reply to ScrollBar!! on Wed, 03 Jan 2007 11:36:09 GMT]]></title><description><![CDATA[<p><a href="http://de.wikipedia.org/wiki/Liste_der_Abk%C3%BCrzungen_(Netzjargon)" rel="nofollow">http://de.wikipedia.org/wiki/Liste_der_Abkürzungen_(Netzjargon)</a></p>
<p>IMHO =<br />
Meistens: „In My Humble Opinion“ - „Meiner unmaßgeblichen/bescheidenen Meinung nach“,<br />
Seltener: „In My Honest Opinion“ - „Meiner aufrichtigen Überzeugung nach“</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1201763</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1201763</guid><dc:creator><![CDATA[Martin Richter]]></dc:creator><pubDate>Wed, 03 Jan 2007 11:36:09 GMT</pubDate></item></channel></rss>