<?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[Verzeichnisse]]></title><description><![CDATA[<p>Hallo C++-ler.<br />
Ihr kennt doch sicher, dass wenn ihr beim Installieren seid, ein Button für das Suchen des Installationsordners kommt. Ich möchte jetzt aber gerne noch alle Dateien eines bestimmten Typs anzeigen lassen. Wisst ihr wie man so etwas machen kann bzw. habt ihr so etwas schon einmal gemacht? Für Codesnips wäre ich sehr dankbar.</p>
<p>Mfg Ominion</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/140925/verzeichnisse</link><generator>RSS for Node</generator><lastBuildDate>Tue, 14 Jul 2026 08:41:09 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/140925.rss" rel="self" type="application/rss+xml"/><pubDate>Sat, 18 Mar 2006 08:59:47 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Verzeichnisse on Sat, 18 Mar 2006 09:01:06 GMT]]></title><description><![CDATA[<p>Hallo C++-ler.<br />
Ihr kennt doch sicher, dass wenn ihr beim Installieren seid, ein Button für das Suchen des Installationsordners kommt. Ich möchte jetzt aber gerne noch alle Dateien eines bestimmten Typs anzeigen lassen. Wisst ihr wie man so etwas machen kann bzw. habt ihr so etwas schon einmal gemacht? Für Codesnips wäre ich sehr dankbar.</p>
<p>Mfg Ominion</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1018827</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1018827</guid><dc:creator><![CDATA[Ominion]]></dc:creator><pubDate>Sat, 18 Mar 2006 09:01:06 GMT</pubDate></item><item><title><![CDATA[Reply to Verzeichnisse on Sat, 18 Mar 2006 09:07:35 GMT]]></title><description><![CDATA[<p>Nimm doch die CommonDialogBox, die du mit GetOpenFileName erstellst.</p>
<p>Da kannst du doch Filter mit angeben.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1018831</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1018831</guid><dc:creator><![CDATA[[[global:guest]]]]></dc:creator><pubDate>Sat, 18 Mar 2006 09:07:35 GMT</pubDate></item><item><title><![CDATA[Reply to Verzeichnisse on Sat, 18 Mar 2006 09:11:29 GMT]]></title><description><![CDATA[<p>Meinst du mit der CommonDialogBox eine &quot;normale&quot; DialogBox? Ich habe unter MSDN darunter nichst finden könne.</p>
<p>Mfg Ominion</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1018833</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1018833</guid><dc:creator><![CDATA[Ominion]]></dc:creator><pubDate>Sat, 18 Mar 2006 09:11:29 GMT</pubDate></item><item><title><![CDATA[Reply to Verzeichnisse on Sat, 18 Mar 2006 09:14:26 GMT]]></title><description><![CDATA[<p>Die Commonteile sind vorgefertigte Dialogboxen für Standardaufgaben wie Druckereinstellungen oder Dateiauswahl.<br />
Damit nicht jede Anwendung das selbst machen muss und der Anwender sich leichter zurechtfindet.</p>
<p><a href="http://msdn.microsoft.com/library/default.asp?url=/library/en-us/winui/winui/windowsuserinterface/userinput/commondialogboxlibrary/commondialogboxreference/commondialogboxfunctions/getopenfilename.asp" rel="nofollow">http://msdn.microsoft.com/library/default.asp?url=/library/en-us/winui/winui/windowsuserinterface/userinput/commondialogboxlibrary/commondialogboxreference/commondialogboxfunctions/getopenfilename.asp</a></p>
]]></description><link>https://www.c-plusplus.net/forum/post/1018834</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1018834</guid><dc:creator><![CDATA[[[global:guest]]]]></dc:creator><pubDate>Sat, 18 Mar 2006 09:14:26 GMT</pubDate></item><item><title><![CDATA[Reply to Verzeichnisse on Sat, 18 Mar 2006 09:15:27 GMT]]></title><description><![CDATA[<p>Danke, SeppSchrot. Ich probier es mal.</p>
<p>Mfg Ominion</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1018837</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1018837</guid><dc:creator><![CDATA[Ominion]]></dc:creator><pubDate>Sat, 18 Mar 2006 09:15:27 GMT</pubDate></item><item><title><![CDATA[Reply to Verzeichnisse on Sat, 18 Mar 2006 09:49:24 GMT]]></title><description><![CDATA[<p>Also ich habe jetzt ein Problem festgestellt. Ich hab jetzt geguckt was wie wo rein muss, aber finde es nicht richtig heraus. Hast du ein konkretes Beispiel für diese &quot;OPENFILENAME Structure&quot;?</p>
<p>Mfg Ominion</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1018851</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1018851</guid><dc:creator><![CDATA[Ominion]]></dc:creator><pubDate>Sat, 18 Mar 2006 09:49:24 GMT</pubDate></item><item><title><![CDATA[Reply to Verzeichnisse on Sat, 18 Mar 2006 09:58:52 GMT]]></title><description><![CDATA[<blockquote>
<p>For an example, see <a href="http://msdn.microsoft.com/library/en-us/winui/winui/windowsuserinterface/userinput/commondialogboxlibrary/usingcommondialogboxes.asp" rel="nofollow">Opening a File</a>.</p>
</blockquote>
]]></description><link>https://www.c-plusplus.net/forum/post/1018854</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1018854</guid><dc:creator><![CDATA[flenders]]></dc:creator><pubDate>Sat, 18 Mar 2006 09:58:52 GMT</pubDate></item><item><title><![CDATA[Reply to Verzeichnisse on Sat, 18 Mar 2006 10:31:19 GMT]]></title><description><![CDATA[<p>Danke jetzt funktioniert es.</p>
<p>Mfg Ominion</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1018864</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1018864</guid><dc:creator><![CDATA[Ominion]]></dc:creator><pubDate>Sat, 18 Mar 2006 10:31:19 GMT</pubDate></item><item><title><![CDATA[Reply to Verzeichnisse on Sat, 18 Mar 2006 10:49:08 GMT]]></title><description><![CDATA[<p>Ich habe jetzt versucht den Pfad an ein Editfeld zu übergeben. Ich habe es jetzt schon mit SendMessage() und SetWindowText() probiert, hat aber alles nicht geklappt. Weiß jemand wie das geht?</p>
<p>Mfg Ominion</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1018877</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1018877</guid><dc:creator><![CDATA[Ominion]]></dc:creator><pubDate>Sat, 18 Mar 2006 10:49:08 GMT</pubDate></item><item><title><![CDATA[Reply to Verzeichnisse on Sat, 18 Mar 2006 11:13:25 GMT]]></title><description><![CDATA[<p>Wie hast du es denn probiert?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1018892</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1018892</guid><dc:creator><![CDATA[bvbcb]]></dc:creator><pubDate>Sat, 18 Mar 2006 11:13:25 GMT</pubDate></item><item><title><![CDATA[Reply to Verzeichnisse on Sat, 18 Mar 2006 14:27:47 GMT]]></title><description><![CDATA[<p>Tschuldigung, dass ich erst jetzt antworte aber ich hatte noch anderweitige Verpflichtungen.<br />
Jetzt zu der Frage:<br />
So</p>
<pre><code class="language-cpp">if (GetOpenFileName (&amp;ofn) == true)
{
    hf = CreateFile(ofn.lpstrFile, GENERIC_READ, 0, (LPSECURITY_ATTRIBUTES) NULL, OPEN_EXISTING, FILE_ATTRIBUTE_NORMAL, (HANDLE) NULL);
    SetWindowText (hFile, hf);
}
</code></pre>
<p>So, oder so ähnlich</p>
<pre><code class="language-cpp">SetWindowText (hFile, (LPCSTR)GetOpenFileName (&amp;ofn))
</code></pre>
<p>Die SendMessage()-Varianten weiss ich leider nicht mehr. Aber trotzdem ist das meiner Meinung nach nicht relevant, da wenn jemand eine funktionierende Möglichkeit kennt oder wusste, kann er die ja auch hier rein stellen bzw. einen Lösungsansatz posten.</p>
<p>Mfg Ominion</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1019049</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1019049</guid><dc:creator><![CDATA[Ominion]]></dc:creator><pubDate>Sat, 18 Mar 2006 14:27:47 GMT</pubDate></item><item><title><![CDATA[Reply to Verzeichnisse on Sat, 18 Mar 2006 14:36:12 GMT]]></title><description><![CDATA[<p>Im Erfolgsfalle liegt der Pfad der Datei in einem Speicherbereich, auf den<br />
ofn.lpstrFile zeigt.</p>
<p>Was denkst du dir hierbei <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="😕"
    /></p>
<pre><code class="language-cpp">SetWindowText (hFile, (LPCSTR)GetOpenFileName (&amp;ofn))
</code></pre>
<p>Sieh nochmal nach, was GetOpenFileName zurückliefert.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1019060</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1019060</guid><dc:creator><![CDATA[[[global:guest]]]]></dc:creator><pubDate>Sat, 18 Mar 2006 14:36:12 GMT</pubDate></item><item><title><![CDATA[Reply to Verzeichnisse on Sat, 18 Mar 2006 14:39:39 GMT]]></title><description><![CDATA[<p>Danke. Ich weiß was GetOpenFileName zurück liefert. Das war mehr oder weniger eine Verzweiflungstat, da ich nicht mehr weiter wusste.</p>
<p>Mfg Ominion</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1019064</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1019064</guid><dc:creator><![CDATA[Ominion]]></dc:creator><pubDate>Sat, 18 Mar 2006 14:39:39 GMT</pubDate></item><item><title><![CDATA[Reply to Verzeichnisse on Sat, 18 Mar 2006 15:00:46 GMT]]></title><description><![CDATA[<p>Ich habe jetzt noch ein Problem: Ich habe meinen Code wieder kompiliert und immer wenn ich jetzt auf den Button drücke, öffnet sich die DialogBox nicht. Hier mal der Code:</p>
<pre><code class="language-cpp">LRESULT CALLBACK WndProc (HWND hWnd1, UINT message, WPARAM wParam, LPARAM lParam)
{
	OPENFILENAME ofn;
	char szFile[260];
	HWND hwnd;
	HANDLE hf;

	ZeroMemory(&amp;ofn, sizeof(ofn));
	ofn.lStructSize = sizeof(ofn);
	ofn.hwndOwner = hwnd;
	ofn.lpstrFile = szFile;

	ofn.lpstrFile[0] = '\0';
	ofn.nMaxFile = sizeof(szFile);
	ofn.lpstrFilter = &quot;Alle\0*.*\0Mp3\0*.mp3\0&quot;;
	ofn.nFilterIndex = 1;
	ofn.lpstrFileTitle = NULL;
	ofn.nMaxFileTitle = 0;
	ofn.lpstrInitialDir = NULL;
	ofn.Flags = OFN_PATHMUSTEXIST | OFN_FILEMUSTEXIST;

	PAINTSTRUCT ps;
	HDC hDC;
	HBRUSH hWelcomeBrush;

    HWND hOpen;
	HWND hFile;

	switch (message)
    {

		case WM_CREATE:
			  hFile = CreateWindow (&quot;ListBox&quot;, NULL, WS_CHILD | WS_VISIBLE, 110, 60, 560, 40, hWnd1, (HMENU)1, g_hInst, NULL);
			  hOpen = CreateWindow (&quot;Button&quot;, &quot;Öffnen&quot;, WS_CHILD | WS_VISIBLE | BS_PUSHBUTTON, 340, 245, 110, 22, hWnd1, (HMENU)2, g_hInst, NULL);
		return 0;

		case WM_PAINT:
	          hDC = BeginPaint(hWnd1, &amp;ps); 

              RoundRect (hDC, 100, 50, 680, 460, 40, 40);

					  hWelcomeBrush = (HBRUSH) SelectObject (hDC, CreateSolidBrush (RGB (255, 0, 0))); 
				      Ellipse (hDC, 285, 150, 495, 360); 
				      DeleteObject(hWelcomeBrush);

			  EndPaint (hWnd1, &amp;ps);

	    return 0;

	    case WM_COMMAND:
			  switch (LOWORD(wParam))
			  {
				  case 2:
					  if (GetOpenFileName(&amp;ofn) == true) 
					  {
						  hf = CreateFile(ofn.lpstrFile, GENERIC_READ, 0, (LPSECURITY_ATTRIBUTES) NULL, OPEN_EXISTING, FILE_ATTRIBUTE_NORMAL, (HANDLE) NULL);
					  } 							    
				  return 0;
			  }
		return 0;

		case WM_DESTROY:
			  PostQuitMessage (0);
		return 0;
	}

    return DefWindowProc (hWnd1, message, wParam, lParam);
}
</code></pre>
<p>Weiß jemand warum?</p>
<p>Mfg Ominion</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1019079</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1019079</guid><dc:creator><![CDATA[Ominion]]></dc:creator><pubDate>Sat, 18 Mar 2006 15:00:46 GMT</pubDate></item><item><title><![CDATA[Reply to Verzeichnisse on Sat, 18 Mar 2006 18:40:23 GMT]]></title><description><![CDATA[<p>Scheinbar hat niemand eine Idee. Ich habe jetzt gemerkt, dass beim Buttonclick einfach nicht die Message WM_COMMAND aktiviert wird. Woran könnte das liegen?</p>
<p>Mfg Ominion</p>
<p>PS: Quelltext hat sich nicht verändert.</p>
<p>[EDIT]WM_COMMAND kommt jetzt an. Die DialogBox öffnet sich aber immer noch nicht beim Buttonclick. Wenn ich sieh aber in WM_CREATE reinpacke klappt es. Weiß jemand warum das zwar bei WM_CREATE aber nicht bei WM_COMMAND klappt?[/EDIT]</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1019228</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1019228</guid><dc:creator><![CDATA[Ominion]]></dc:creator><pubDate>Sat, 18 Mar 2006 18:40:23 GMT</pubDate></item><item><title><![CDATA[Reply to Verzeichnisse on Sat, 18 Mar 2006 19:04:33 GMT]]></title><description><![CDATA[<p>die hwnd variable wird uninitialisiert benutzt. die ist sowieso völlig überflüssig. lösch die und nenn den 1.parameter der funktion hwnd</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1019255</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1019255</guid><dc:creator><![CDATA[srot]]></dc:creator><pubDate>Sat, 18 Mar 2006 19:04:33 GMT</pubDate></item><item><title><![CDATA[Reply to Verzeichnisse on Sat, 18 Mar 2006 19:50:57 GMT]]></title><description><![CDATA[<p>Danke, ich glaub ich hatte da gerade meine Sonnenbrille auf.</p>
<p>Mfg Ominion</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1019272</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1019272</guid><dc:creator><![CDATA[Ominion]]></dc:creator><pubDate>Sat, 18 Mar 2006 19:50:57 GMT</pubDate></item></channel></rss>