<?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[EnumChildWindows]]></title><description><![CDATA[<p>Hallo,<br />
ich versuche gerade, mir die Childs von einem Fenster auflisten zu lassen. Allerdings verursacht der code, wie ich ihn momentan verwende, einen Fehler in Windows und nicht im debugger. Wär nett wenn jemand mal schaun könnte, was ich falsch gemacht habe:</p>
<pre><code class="language-cpp">HANDLE ParentWnd, ChildWnd;

...

ChildWnd = EnumChildWindows(ParentWnd,NULL,NULL);
    if(ChildWnd == NULL) {
                printf(&quot;Could not fild Child!\n&quot;);
                system(&quot;PAUSE&quot;);
                return 1;
    } else {
           printf(&quot;Found Child!\n&quot;);
    }
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/topic/145880/enumchildwindows</link><generator>RSS for Node</generator><lastBuildDate>Thu, 16 Jul 2026 13:20:33 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/145880.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 02 May 2006 09:15:25 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to EnumChildWindows on Tue, 02 May 2006 09:15:25 GMT]]></title><description><![CDATA[<p>Hallo,<br />
ich versuche gerade, mir die Childs von einem Fenster auflisten zu lassen. Allerdings verursacht der code, wie ich ihn momentan verwende, einen Fehler in Windows und nicht im debugger. Wär nett wenn jemand mal schaun könnte, was ich falsch gemacht habe:</p>
<pre><code class="language-cpp">HANDLE ParentWnd, ChildWnd;

...

ChildWnd = EnumChildWindows(ParentWnd,NULL,NULL);
    if(ChildWnd == NULL) {
                printf(&quot;Could not fild Child!\n&quot;);
                system(&quot;PAUSE&quot;);
                return 1;
    } else {
           printf(&quot;Found Child!\n&quot;);
    }
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/1049387</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1049387</guid><dc:creator><![CDATA[MaxDemian]]></dc:creator><pubDate>Tue, 02 May 2006 09:15:25 GMT</pubDate></item><item><title><![CDATA[Reply to EnumChildWindows on Tue, 02 May 2006 09:18:40 GMT]]></title><description><![CDATA[<p>Hmm... du hast Dir aber das Beispiel zu &quot;EnumChildWindows&quot; mal angesehen, oder?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1049388</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1049388</guid><dc:creator><![CDATA[Jochen Kalmbach]]></dc:creator><pubDate>Tue, 02 May 2006 09:18:40 GMT</pubDate></item><item><title><![CDATA[Reply to EnumChildWindows on Tue, 02 May 2006 09:58:16 GMT]]></title><description><![CDATA[<p>Hmm, schon aber nicht so recht verstanden. Da wurde als zweites ChildWndProc übergeben, aber wozu soll ich denn diese brauchen? Ich will doch nur die Childs aufgelistet haben</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1049415</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1049415</guid><dc:creator><![CDATA[MaxDemian]]></dc:creator><pubDate>Tue, 02 May 2006 09:58:16 GMT</pubDate></item><item><title><![CDATA[Reply to EnumChildWindows on Tue, 02 May 2006 10:13:12 GMT]]></title><description><![CDATA[<p>MaxDemian schrieb:</p>
<blockquote>
<p>Hmm, schon aber nicht so recht verstanden. Da wurde als zweites ChildWndProc übergeben, aber wozu soll ich denn diese brauchen? Ich will doch nur die Childs aufgelistet haben</p>
</blockquote>
<p>Der Sinn ist der, dass für jedes Child die entsprechende Funktion genau einmal aufgreufen wird.<br />
Evtl. suchst Du auch nur die Funktion GetWindow.</p>
<p>Die folgende Schleife druchläuft auch alle Childs eines Parent Windows</p>
<pre><code>for (HWND hWnd=GetWindow(hwndParent,GW_CHILD; hWnd; hWnd=GetWindow(hWnd,GW_HWNDNEXT))
{
// Do something
...
}
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/1049426</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1049426</guid><dc:creator><![CDATA[Martin Richter]]></dc:creator><pubDate>Tue, 02 May 2006 10:13:12 GMT</pubDate></item><item><title><![CDATA[Reply to EnumChildWindows on Wed, 03 May 2006 16:27:32 GMT]]></title><description><![CDATA[<p>hmm, da kommt bei mir nur:</p>
<blockquote>
<p>51 C:\sendMess\sendMess.cpp invalid conversion from `void*' to `HWND__*'</p>
</blockquote>
]]></description><link>https://www.c-plusplus.net/forum/post/1050397</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1050397</guid><dc:creator><![CDATA[MaxDemian]]></dc:creator><pubDate>Wed, 03 May 2006 16:27:32 GMT</pubDate></item><item><title><![CDATA[Reply to EnumChildWindows on Wed, 03 May 2006 16:52:10 GMT]]></title><description><![CDATA[<p>Und was ist hWndParent? Ein void*?<br />
Zeige doch mal den gesamten entsprechenden Codeabschnitt!</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1050408</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1050408</guid><dc:creator><![CDATA[Martin Richter]]></dc:creator><pubDate>Wed, 03 May 2006 16:52:10 GMT</pubDate></item><item><title><![CDATA[Reply to EnumChildWindows on Sun, 07 May 2006 14:29:07 GMT]]></title><description><![CDATA[<p>hmm, ParantWnd ist eigentlich ein HANDLE:</p>
<pre><code class="language-cpp">HANDLE ParentWnd, ChildWnd;
    LONG scaddr;

    /* You get the Classname with the OllyDbg */
    ParentWnd = FindWindow(&quot;#32770&quot;,&quot;Registrierungsdaten&quot;);
    if(ParentWnd == NULL) {
                 printf(&quot;did not find Parent Window!\n&quot;);
                 system(&quot;PAUSE&quot;);
                 return 1; 
    } else {
           printf(&quot;Found Parent Window!\n&quot;);
           }

HWND hWnd=GetWindow(ParentWnd,GW_CHILD);
for (hWnd; hWnd; hWnd=GetWindow(hWnd,GW_HWNDNEXT))
{
    cout&lt;&lt;hwnd&lt;&lt;&quot;\n&quot;;
}
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/1052696</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1052696</guid><dc:creator><![CDATA[MaxDemian]]></dc:creator><pubDate>Sun, 07 May 2006 14:29:07 GMT</pubDate></item><item><title><![CDATA[Reply to EnumChildWindows on Sun, 07 May 2006 15:49:42 GMT]]></title><description><![CDATA[<p>HANDLE ist falsch! Muss ein HWND sein!</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1052749</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1052749</guid><dc:creator><![CDATA[Martin Richter]]></dc:creator><pubDate>Sun, 07 May 2006 15:49:42 GMT</pubDate></item><item><title><![CDATA[Reply to EnumChildWindows on Mon, 08 May 2006 06:00:44 GMT]]></title><description><![CDATA[<p>argh, ich bin aber auch ... Danke ^^</p>
<p>Ok, ich hab jetzt mehrere Handles. Gibt es nun eine Funktion, mit der man sich den Klassennamen anzeigen lassen kann? Bzw (damit ich nich immer hier Fragen muss^^) wie kann man rausfinden, ob es so eine Funktion gibt? (sry, bin noch nich so der C++-Crack)</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1053090</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1053090</guid><dc:creator><![CDATA[MaxDemian]]></dc:creator><pubDate>Mon, 08 May 2006 06:00:44 GMT</pubDate></item><item><title><![CDATA[Reply to EnumChildWindows on Mon, 08 May 2006 06:08:03 GMT]]></title><description><![CDATA[<p>Es gibt die MSDN, die Du hoffentlich doch mit Deinem Visual Studio instaliert hast.<br />
Die MSDN gibt es auch Online<br />
<a href="http://msdn.microsoft.com/library/default.asp" rel="nofollow">http://msdn.microsoft.com/library/default.asp</a></p>
<p>Ansonsten sind die Namen der Win32 API sehr eingänglich.<br />
Klassenamen eines Fensters ermitteln: GetClassName<br />
<a href="http://msdn.microsoft.com/library/default.asp?url=/library/en-us/winui/winui/windowsuserinterface/windowing/windowclasses/windowclassreference/windowclassfunctions/getclassname.asp" rel="nofollow">http://msdn.microsoft.com/library/default.asp?url=/library/en-us/winui/winui/windowsuserinterface/windowing/windowclasses/windowclassreference/windowclassfunctions/getclassname.asp</a></p>
]]></description><link>https://www.c-plusplus.net/forum/post/1053092</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1053092</guid><dc:creator><![CDATA[Martin Richter]]></dc:creator><pubDate>Mon, 08 May 2006 06:08:03 GMT</pubDate></item><item><title><![CDATA[Reply to EnumChildWindows on Mon, 08 May 2006 13:06:00 GMT]]></title><description><![CDATA[<p>Visual Studio??? neeeeeeeeeeeeee, Dev-C++ ^^</p>
<p>Danke für die quelle!</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1053366</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1053366</guid><dc:creator><![CDATA[MaxDemian]]></dc:creator><pubDate>Mon, 08 May 2006 13:06:00 GMT</pubDate></item></channel></rss>