<?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[Überprüfen ob Button vorhanden]]></title><description><![CDATA[<p>Hi,<br />
wie kann ich programmiertechnisch überprüfen, bevor ich mit Button.Create(..) einen Button erzeuge, ob ein Button bereits existiert bzw. ob er auf der Oberfläche ist.</p>
<p>ich erzeuge mir die Buttons zur Laufzeit so:</p>
<p>Button2.Create (_T(&quot;2&quot;),WS_CHILD | WS_VISIBLE | BS_PUSHBUTTON, CRect(20,100,100,150),this,IDC_BUTTON2);<br />
Button2.ShowWindow(SW_SHOW);</p>
<p>Es ist aber so, daß die Funktion in der dieser Aufruf verpackt ist,<br />
öfters aufgerufen wird und ich deshalb überprüfen muss, ob dieser Button schon auf der Oberfläche vorhanden ist, da mir sonst das Programm abstürzt.</p>
<p>Bin für jeden Tipp dankbar !</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/5864/überprüfen-ob-button-vorhanden</link><generator>RSS for Node</generator><lastBuildDate>Mon, 13 Apr 2026 03:18:30 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/5864.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 23 May 2003 07:47:00 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Überprüfen ob Button vorhanden on Fri, 23 May 2003 07:47:00 GMT]]></title><description><![CDATA[<p>Hi,<br />
wie kann ich programmiertechnisch überprüfen, bevor ich mit Button.Create(..) einen Button erzeuge, ob ein Button bereits existiert bzw. ob er auf der Oberfläche ist.</p>
<p>ich erzeuge mir die Buttons zur Laufzeit so:</p>
<p>Button2.Create (_T(&quot;2&quot;),WS_CHILD | WS_VISIBLE | BS_PUSHBUTTON, CRect(20,100,100,150),this,IDC_BUTTON2);<br />
Button2.ShowWindow(SW_SHOW);</p>
<p>Es ist aber so, daß die Funktion in der dieser Aufruf verpackt ist,<br />
öfters aufgerufen wird und ich deshalb überprüfen muss, ob dieser Button schon auf der Oberfläche vorhanden ist, da mir sonst das Programm abstürzt.</p>
<p>Bin für jeden Tipp dankbar !</p>
]]></description><link>https://www.c-plusplus.net/forum/post/28468</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/28468</guid><dc:creator><![CDATA[chz17]]></dc:creator><pubDate>Fri, 23 May 2003 07:47:00 GMT</pubDate></item><item><title><![CDATA[Reply to Überprüfen ob Button vorhanden on Fri, 23 May 2003 07:50:00 GMT]]></title><description><![CDATA[<p>Setze eine boolvariable auf true wenn du den Button erzeugst</p>
]]></description><link>https://www.c-plusplus.net/forum/post/28469</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/28469</guid><dc:creator><![CDATA[Andorxor]]></dc:creator><pubDate>Fri, 23 May 2003 07:50:00 GMT</pubDate></item><item><title><![CDATA[Reply to Überprüfen ob Button vorhanden on Fri, 23 May 2003 07:53:00 GMT]]></title><description><![CDATA[<p>probiere mal mit oder mit was ähnlichem<br />
CWnd::GetDlgItem<br />
CWnd* GetDlgItem( int nID ) const;</p>
<p>void CWnd::GetDlgItem( int nID, HWND* phWnd ) const;</p>
<p>Return Value</p>
<p>A pointer to the given control or child window. If no control with the integer ID given by the nID parameter exists, the value is NULL.</p>
<p>The returned pointer may be temporary and should not be stored for later use.</p>
<p>Parameters</p>
<p>nID</p>
<p>Specifies the identifier of the control or child window to be retrieved.</p>
<p>phWnd</p>
<p>A pointer to a child window.</p>
<p>Remarks</p>
<p>Retrieves a pointer to the specified control or child window in a dialog box or other window. The pointer returned is usually cast to the type of control identified by nID.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/28470</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/28470</guid><dc:creator><![CDATA[aksakal]]></dc:creator><pubDate>Fri, 23 May 2003 07:53:00 GMT</pubDate></item></channel></rss>