#pragma once #include "YYCCInternal.hpp" #if YYCC_OS == YYCC_OS_WINDOWS #include #include #include "WinImportPrefix.hpp" #include #include #include #include "WinImportSuffix.hpp" namespace YYCC::DialogHelper { //struct FileDialogParameter { // FileDialogParameter() : // m_Owner(nullptr), // m_Filter(), m_SelectedFilter(0), // m_Title(), // m_DefaultExtension(), m_InitialDirectory(), m_InitialFileName() {} // HWND m_Owner; // std::vector> m_Filter; // size_t m_SelectedFilter; // std::string m_Title; // std::string m_DefaultExtension; // std::string m_InitialFileName; // std::string m_InitialDirectory; //}; //struct FolderDialogParameter { // FolderDialogParameter() : // m_Owner(nullptr), // m_Title() {} // HWND m_Owner; // std::string m_Title; //}; //bool OpenFileDialog(const FileDialogParameter& params, std::string& ret); //bool OpenMultipleFileDialog(const FileDialogParameter& params, std::vector& ret); //bool SaveFileDialog(const FileDialogParameter& params, std::string& ret); //bool OpenFolderDialog(const FolderDialogParameter& params, std::string& ret); } #endif