<?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[Standard Verzeichnis Oeffnen Button]]></title><description><![CDATA[<p>Hallo,<br />
hat jemand vielleicht mal einen code-schnippsel zum erstellen eines buttons der als bitmap das uebliche &quot;Verzeichnis oeffnen&quot; Bitmap hat?<br />
(ich moechte also einen button erstellen, der nicht &quot;Browse Directory&quot; als Aufschrift hat, sondern ein Bitmap das einen Ordner darstellt.</p>
<p>danke.</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/76017/standard-verzeichnis-oeffnen-button</link><generator>RSS for Node</generator><lastBuildDate>Sat, 25 Apr 2026 02:44:35 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/76017.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 07 Jun 2004 08:00:36 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Standard Verzeichnis Oeffnen Button on Mon, 07 Jun 2004 08:00:36 GMT]]></title><description><![CDATA[<p>Hallo,<br />
hat jemand vielleicht mal einen code-schnippsel zum erstellen eines buttons der als bitmap das uebliche &quot;Verzeichnis oeffnen&quot; Bitmap hat?<br />
(ich moechte also einen button erstellen, der nicht &quot;Browse Directory&quot; als Aufschrift hat, sondern ein Bitmap das einen Ordner darstellt.</p>
<p>danke.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/534801</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/534801</guid><dc:creator><![CDATA[peperonee]]></dc:creator><pubDate>Mon, 07 Jun 2004 08:00:36 GMT</pubDate></item><item><title><![CDATA[Reply to Standard Verzeichnis Oeffnen Button on Mon, 07 Jun 2004 08:07:41 GMT]]></title><description><![CDATA[<p>Dafür brauchst du die Bitmap oder ein Icon und dein Button muss den BS_BITMAP oder BS_ICON Style haben. Danach schickst du BM_SETIMAGE. Diese übliche Bitmap kannst möglicherweise aus shell32.dll extrahieren.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/534805</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/534805</guid><dc:creator><![CDATA[Shlo]]></dc:creator><pubDate>Mon, 07 Jun 2004 08:07:41 GMT</pubDate></item><item><title><![CDATA[Reply to Standard Verzeichnis Oeffnen Button on Mon, 07 Jun 2004 08:12:55 GMT]]></title><description><![CDATA[<p>vielen dank, nur waerst du vielleicht so nett (wenns es nicht viel code ist)<br />
mir ein paar zeilen zu schicken (als beispiel) oder eine URL wo ich sowas nachlesen kann??<br />
bin mfc-intermediate.</p>
<p>vielen dank.<br />
gruss</p>
]]></description><link>https://www.c-plusplus.net/forum/post/534809</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/534809</guid><dc:creator><![CDATA[peperonee]]></dc:creator><pubDate>Mon, 07 Jun 2004 08:12:55 GMT</pubDate></item><item><title><![CDATA[Reply to Standard Verzeichnis Oeffnen Button on Mon, 07 Jun 2004 08:26:33 GMT]]></title><description><![CDATA[<p>hier ist etwas code, den ich mal genommen hatte, um bei einem spiel den button mit der gewürfelten augenzahl zu versehen:</p>
<pre><code class="language-cpp">HICON m_Wuerfel;
m_Wuerfel = AfxGetApp()-&gt;LoadIcon(IDI_Wuerfel); //IDI_Wuerfel ist ein selbsterstelltes icon
m_WuerfelBtn.SetIcon(m_Wuerfel); //m_WuerfelBtn ist eine CButton-Varible von der Schaltfläche, die den Würfel anzeigen soll
</code></pre>
<p>wie Shlo schon sagte, musst du jedoch vorher BS_ICON-Style für deine Schaltfläche vergeben. (am einfachsten im ressourcen editor rechtklicks auf den button-&gt;format-&gt;symbol)</p>
<p>viel spass</p>
]]></description><link>https://www.c-plusplus.net/forum/post/534814</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/534814</guid><dc:creator><![CDATA[Emperor_L0ser]]></dc:creator><pubDate>Mon, 07 Jun 2004 08:26:33 GMT</pubDate></item><item><title><![CDATA[Reply to Standard Verzeichnis Oeffnen Button on Mon, 07 Jun 2004 08:35:41 GMT]]></title><description><![CDATA[<p>wens interessiert wie man den standard geoeffneter Ordner icon fuer ein button setzt:</p>
<p>CButton *btn = (CButton <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="😉"
    /> GetDlgItem(IDC_BTN_BROWSEWA);<br />
btn-&gt;SetButtonStyle(BS_ICON);</p>
<p>HICON openFolderIcon;<br />
ExtractIconEx (<br />
_T(&quot;SHELL32.DLL&quot;),<br />
4, NULL,<br />
&amp;openFolderIcon,<br />
1);</p>
<p>btn-&gt;SetIcon(openFolderIcon);<br />
SendMessage(BM_SETIMAGE);</p>
<p>Am besten in OnInitDialog reinschreiben <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>
<p>vielen dank.</p>
<p>gruss</p>
]]></description><link>https://www.c-plusplus.net/forum/post/534823</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/534823</guid><dc:creator><![CDATA[peperonee]]></dc:creator><pubDate>Mon, 07 Jun 2004 08:35:41 GMT</pubDate></item><item><title><![CDATA[Reply to Standard Verzeichnis Oeffnen Button on Mon, 07 Jun 2004 08:38:41 GMT]]></title><description><![CDATA[<p>Nochwas: meistens enthält ein Icon mehrere Größen, von LoadIcon wird defaultmäßig die Standardgröße 32x32 Pixel geladen. Falls du eine andere Größe brauchst, kannst du folgendes machen:</p>
<pre><code class="language-cpp">CImageList imgl;
imgl.Create(16,16,ILC_COLOR32|ILC_MASK,1,1); //16x16
imgl.Add(::LoadIcon(0,IDI_APPLICATION));

CButton* pb = static_cast&lt;CButton*&gt;(GetDlgItem(IDC_BUTTON1));
pb-&gt;SetIcon(imgl.ExtractIcon(0));
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/534828</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/534828</guid><dc:creator><![CDATA[Shlo]]></dc:creator><pubDate>Mon, 07 Jun 2004 08:38:41 GMT</pubDate></item></channel></rss>