<?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[In einem Listenfenster Nachricht bekommen wenn der Scrollbutton gedrückt wurde]]></title><description><![CDATA[<blockquote>
<p>static HWND LHours=CreateWindow(&quot;listbox&quot;,NULL,<br />
WS_CHILD|WS_VISIBLE|LBS_STANDARD|WS_BORDER,<br />
Lx,Ly,<br />
40,30,<br />
hWnd,(HMENU)23,hInst,NULL);<br />
...<br />
case WM_VSCROLL:<br />
{<br />
MessageBox(0,&quot;uuu&quot;,0,0);<br />
break;<br />
}</p>
</blockquote>
<p>Ich bekomme keine Message wenn der Nutzer die Scrollleiste bzw. den ScrollKnopd drückt....</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/99521/in-einem-listenfenster-nachricht-bekommen-wenn-der-scrollbutton-gedrückt-wurde</link><generator>RSS for Node</generator><lastBuildDate>Tue, 28 Apr 2026 10:57:09 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/99521.rss" rel="self" type="application/rss+xml"/><pubDate>Sat, 29 Jan 2005 11:26:29 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to In einem Listenfenster Nachricht bekommen wenn der Scrollbutton gedrückt wurde on Sat, 29 Jan 2005 11:26:29 GMT]]></title><description><![CDATA[<blockquote>
<p>static HWND LHours=CreateWindow(&quot;listbox&quot;,NULL,<br />
WS_CHILD|WS_VISIBLE|LBS_STANDARD|WS_BORDER,<br />
Lx,Ly,<br />
40,30,<br />
hWnd,(HMENU)23,hInst,NULL);<br />
...<br />
case WM_VSCROLL:<br />
{<br />
MessageBox(0,&quot;uuu&quot;,0,0);<br />
break;<br />
}</p>
</blockquote>
<p>Ich bekomme keine Message wenn der Nutzer die Scrollleiste bzw. den ScrollKnopd drückt....</p>
]]></description><link>https://www.c-plusplus.net/forum/post/709488</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/709488</guid><dc:creator><![CDATA[wmscroll]]></dc:creator><pubDate>Sat, 29 Jan 2005 11:26:29 GMT</pubDate></item><item><title><![CDATA[Reply to In einem Listenfenster Nachricht bekommen wenn der Scrollbutton gedrückt wurde on Sat, 29 Jan 2005 13:27:05 GMT]]></title><description><![CDATA[<p>hab es grad mal kurz probiert bekomme es auch nicht hin finde auch keine erklärung in der msdn dafür. <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f615.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--confused_face"
      title=":confused:"
      alt="😕"
    /><br />
aber wenn ich listbox subclasse funktionert es einwandfrei.</p>
<p>sublclassing:<br />
<a href="http://www.winapi.net/index.php?inhalt=s27" rel="nofollow">http://www.winapi.net/index.php?inhalt=s27</a></p>
]]></description><link>https://www.c-plusplus.net/forum/post/709576</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/709576</guid><dc:creator><![CDATA[miller_m]]></dc:creator><pubDate>Sat, 29 Jan 2005 13:27:05 GMT</pubDate></item><item><title><![CDATA[Reply to In einem Listenfenster Nachricht bekommen wenn der Scrollbutton gedrückt wurde on Sat, 29 Jan 2005 13:59:37 GMT]]></title><description><![CDATA[<p>Wenn ich das SubClass bekomme ich probleme in der WM_PAINT:...<br />
Da werden verschiedene bereiche des Fensters neu gezeichnet oder als falsch markiert....</p>
]]></description><link>https://www.c-plusplus.net/forum/post/709601</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/709601</guid><dc:creator><![CDATA[wmscroll]]></dc:creator><pubDate>Sat, 29 Jan 2005 13:59:37 GMT</pubDate></item><item><title><![CDATA[Reply to In einem Listenfenster Nachricht bekommen wenn der Scrollbutton gedrückt wurde on Sat, 29 Jan 2005 14:05:09 GMT]]></title><description><![CDATA[<blockquote>
<p>Wenn ich das SubClass bekomme ich probleme in der WM_PAINT:...<br />
Da werden verschiedene bereiche des Fensters neu gezeichnet oder als falsch markiert....</p>
</blockquote>
<p><img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f615.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--confused_face"
      title=":confused:"
      alt="😕"
    /> Du musst doch nicht WM_PAINT behandeln!</p>
]]></description><link>https://www.c-plusplus.net/forum/post/709606</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/709606</guid><dc:creator><![CDATA[Anfänger14]]></dc:creator><pubDate>Sat, 29 Jan 2005 14:05:09 GMT</pubDate></item><item><title><![CDATA[Reply to In einem Listenfenster Nachricht bekommen wenn der Scrollbutton gedrückt wurde on Sat, 29 Jan 2005 14:12:25 GMT]]></title><description><![CDATA[<pre><code>LRESULT CALLBACK PROClistbox(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam)
{
	return CallWindowProc(wndProcTab3,hWnd, message, wParam, lParam);
}
</code></pre>
<pre><code>LRESULT CALLBACK wndProcTab3(HWND hWnd,UINT uMsg,WPARAM wParam,LPARAM lParam)
{
	static HWND LHours;

	switch(uMsg)
	{
		case WM_CREATE:
		{	
		LHours=CreateWindow(&quot;listbox&quot;,0,WS_CHILD|WS_VSCROLL|WS_VISIBLE|WS_CAPTION,
							  100,100,100,60,hWnd,(HMENU)23,hInst,0);
			SendMessage(LHours, LB_INSERTSTRING, 0, (LPARAM) &quot;la&quot;);
			SendMessage(LHours, LB_INSERTSTRING, 0, (LPARAM) &quot;la&quot;);
			SendMessage(LHours, LB_INSERTSTRING, 0, (LPARAM) &quot;la&quot;);
			SendMessage(LHours, LB_INSERTSTRING, 0, (LPARAM) &quot;la&quot;);
		// SetWindowLong(LHours,GWL_WNDPROC,(LONG)PROClistbox);
</code></pre>
<p>Lasse Ich SetWindowLong weg, werden die Einträge angezeigt. Wenn ich jedoch die Kommentare entferne werden die Einzelnen Einträge nicht angezeigt.... <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f62e.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--face_with_open_mouth"
      title=":open_mouth:"
      alt="😮"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/post/709611</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/709611</guid><dc:creator><![CDATA[wmscroll]]></dc:creator><pubDate>Sat, 29 Jan 2005 14:12:25 GMT</pubDate></item><item><title><![CDATA[Reply to In einem Listenfenster Nachricht bekommen wenn der Scrollbutton gedrückt wurde on Sat, 29 Jan 2005 14:29:06 GMT]]></title><description><![CDATA[<pre><code class="language-cpp">{
	static HWND LHours;

	switch(uMsg)
	{
		case WM_CREATE:
		{	
			LHours=CreateWindow(&quot;listbox&quot;,0,WS_CHILD|WS_VSCROLL|WS_VISIBLE|WS_CAPTION,
							  100,100,100,60,hWnd,(HMENU)23,hInst,0);

			if(SendMessage(LHours, LB_INSERTSTRING, 0, (LPARAM) &quot;la&quot;)==LB_ERR)MessageBox(0,&quot;lol&quot;,0,0);
			SendMessage(LHours, LB_INSERTSTRING, 0, (LPARAM) &quot;la&quot;);
			SendMessage(LHours, LB_INSERTSTRING, 0, (LPARAM) &quot;la&quot;);
			SendMessage(LHours, LB_INSERTSTRING, 0, (LPARAM) &quot;la&quot;);
			break;
		}
		case WM_CTLCOLORLISTBOX:
			{
				SetWindowLong(LHours,GWL_WNDPROC,(LONG)PROClistbox);
				break;
			}
</code></pre>
<p>Jetzt Funktionierts <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f609.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--winking_face"
      title=";)"
      alt="😉"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/post/709624</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/709624</guid><dc:creator><![CDATA[wmscroll]]></dc:creator><pubDate>Sat, 29 Jan 2005 14:29:06 GMT</pubDate></item><item><title><![CDATA[Reply to In einem Listenfenster Nachricht bekommen wenn der Scrollbutton gedrückt wurde on Sat, 29 Jan 2005 18:49:14 GMT]]></title><description><![CDATA[<p>Funktioniert doch nicht. Wenn ich wie gesagt ein paar Strings reinsetze, und dann das Teil subclasse, werden die Strings nicht mehr angezeigt....Wie kann ich das vermeiden? - ich brauche unbedingt die WM_VHSCROLL von der listbox</p>
]]></description><link>https://www.c-plusplus.net/forum/post/709831</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/709831</guid><dc:creator><![CDATA[wmscroll]]></dc:creator><pubDate>Sat, 29 Jan 2005 18:49:14 GMT</pubDate></item><item><title><![CDATA[Reply to In einem Listenfenster Nachricht bekommen wenn der Scrollbutton gedrückt wurde on Sat, 29 Jan 2005 23:33:51 GMT]]></title><description><![CDATA[<p>keiner eine idee?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/710005</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/710005</guid><dc:creator><![CDATA[wmscroll]]></dc:creator><pubDate>Sat, 29 Jan 2005 23:33:51 GMT</pubDate></item><item><title><![CDATA[Reply to In einem Listenfenster Nachricht bekommen wenn der Scrollbutton gedrückt wurde on Sat, 29 Jan 2005 23:38:25 GMT]]></title><description><![CDATA[<p>du speicherst nirgendwo den rückgabewert von SetWindowLong. hast du subclassing überhaupt verstanden?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/710008</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/710008</guid><dc:creator><![CDATA[hmmmmmm]]></dc:creator><pubDate>Sat, 29 Jan 2005 23:38:25 GMT</pubDate></item><item><title><![CDATA[Reply to In einem Listenfenster Nachricht bekommen wenn der Scrollbutton gedrückt wurde on Sun, 30 Jan 2005 10:12:32 GMT]]></title><description><![CDATA[<p>augen auf...<br />
LRESULT CALLBACK PROClistbox(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam)<br />
{<br />
return CallWindowProc(<strong>wndProcTab3</strong>,hWnd, message, wParam, lParam);<br />
}</p>
]]></description><link>https://www.c-plusplus.net/forum/post/710130</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/710130</guid><dc:creator><![CDATA[wmscroll]]></dc:creator><pubDate>Sun, 30 Jan 2005 10:12:32 GMT</pubDate></item><item><title><![CDATA[Reply to In einem Listenfenster Nachricht bekommen wenn der Scrollbutton gedrückt wurde on Sun, 30 Jan 2005 12:06:25 GMT]]></title><description><![CDATA[<p>ROFL.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/710239</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/710239</guid><dc:creator><![CDATA[hmmmmmm]]></dc:creator><pubDate>Sun, 30 Jan 2005 12:06:25 GMT</pubDate></item><item><title><![CDATA[Reply to In einem Listenfenster Nachricht bekommen wenn der Scrollbutton gedrückt wurde on Sun, 30 Jan 2005 14:00:47 GMT]]></title><description><![CDATA[<p>hmmmmmm schrieb:</p>
<blockquote>
<p>ROFL.</p>
</blockquote>
<p>Zu Untertrieben <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f603.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--grinning_face_with_big_eyes"
      title=":D"
      alt="😃"
    /></p>
<p>[cpp]<br />
static WNDPROC <strong>AlteWndProcDerListBox</strong> (WNDPROC)SetWindowLong(....<strong>PROClistbox</strong>...)<br />
//...<br />
LRESULT CALLBACK PROClistbox(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam)<br />
{<br />
return CallWindowProc(<strong>AlteWndProcDerListBox</strong>,hWnd, message, wParam, lParam);<br />
}<br />
[/cpp]</p>
]]></description><link>https://www.c-plusplus.net/forum/post/710325</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/710325</guid><dc:creator><![CDATA[MichaM.]]></dc:creator><pubDate>Sun, 30 Jan 2005 14:00:47 GMT</pubDate></item></channel></rss>