path auswählen ...
-
weiss jemand, wie man einen GetOpenFileName - Dlg dazu bringt, dass man nur einen path auswählen kann, ohne eine datei wählen zu müssen ? oder gibts eine alternative ?
rocknix ///
-
Um auch mal etwas Werbung zu machen:
http://www.winapi.net/index.php?inhalt=s40Passend dazu:
http://www.winapi.net/index.php?inhalt=s38Im Zweifelsfalle ist das aber auch eine FAQ:
http://www.c-plusplus.net/forum/viewtopic.php?t=39370
-
hmm, ja, besten dank erstmal ...
die sache mit COM hatte ich auch schon im MSDN bei microsoft gefunden. einfacher gehts wohl nicht, oder ?
und läuft das auf allen windows varianten ?
RockNix //
-
RockNix schrieb:
die sache mit COM hatte ich auch schon im MSDN bei microsoft gefunden. einfacher gehts wohl nicht, oder ?
Nicht das ich wüsste, nein.
und läuft das auf allen windows varianten ?
Jawoll.
-
habe es gerade mal in meine anwendung eingebaut, läuft prima ...
allerdings - ups - kannte mein compiler dieses FLAG nicht ---> BIF_USENEWUI
habe es dann mal gekickt ... läuft trotzdem. kannst du mir mal kurz erklären, was es damit auf sich hat ?
-
Das Flag ist neueren Datums. Du wirst wohl noch mit einem etwas älteren PSDK arbeiten, oder? Beschrieben ist das aber in der Hilfe zur BROWSEINFO-Struktur:
MSDN schrieb:
BIF_USENEWUI
Version 5.0. Use the new user interface, including an edit box. This flag is equivalent to BIF_EDITBOX | BIF_NEWDIALOGSTYLE. To use BIF_USENEWUI, you must call OleInitialize or CoInitialize before calling SHBrowseForFolder.BIF_EDITBOX
Version 4.71. Include an edit control in the browse dialog box that allows the user to type the name of an item.BIF_NEWDIALOGSTYLE
Version 5.0. Use the new user interface. Setting this flag provides the user with a larger dialog box that can be resized. The dialog box has several new capabilities including: drag and drop capability within the dialog box, reordering, shortcut menus, new folders, delete, and other shortcut menu commands. To use this flag, you must call OleInitialize or CoInitialize before calling SHBrowseForFolder.
-
ja, ist nicht gerade das neueste sdk ... müsste ich mal updaten
läuft auf jeden fall prima ... DANKEEEEE