掲示板システム
ホーム
アクセス解析
カテゴリ
ログアウト
コモンダイアログで指定したフォルダに移動するには? (ID:69552)
名前
ホームページ(ブログ、Twitterなど)のURL (省略可)
本文
#include <dlgs.h> void SelectDirectory(HWND fileDialog, LPCTSTR folderPath) { if (!::SetDlgItemText(fileDialog, edt1, folderPath)) { ::SetDlgItemText(fileDialog, cmb13, folderPath); } ::SendMessage(fileDialog, WM_COMMAND, IDOK, 0); } void SelectDirectory(HWND fileDialog, LPITEMIDLIST folderPath) { IShellBrowser* shellBrowser = (IShellBrowser*)::SendMessage(fileDialog, WM_USER + 7, 0, 0); if (shellBrowser) { shellBrowser->BrowseObject(folderPath, SBSP_SAMEBROWSER | SBSP_ABSOLUTE); } } たしかこうだったような。
←解決時は質問者本人がここをチェックしてください。
更新する
戻る
掲示板システム
Copyright 2021 Takeshi Okamoto All Rights Reserved.