Show a file save as dialog using the specified settings.
int get_saveas_box_by_file_group( string & strFile, LPCSTR lpcszGroup, LPCSTR lpcszTitle = NULL, DWORD dwFlags = 0, LPCSTR lpcszDefaultPath = NULL, LPCSTR lpcszDefaultFilename = NULL, LPCSTR lpcszCheckBoxName = NULL, int * lpnCheckBoxState = NULL, LPCSTR lpcszFuncName = NULL )
returns 0 if click cancel button.
EX1
int get_saveas_box_by_file_group_Ex1() { string strFiles; LPCSTR strGroup = "CodeBuilder";// the same file group as in Code Builder file dialog LPCSTR strTitle = "SaveFileAsDlg"; if( 0 == get_saveas_box_by_file_group( strFiles, strGroup, strTitle) ) printf("User click Cancel to close file without save"); else out_str( "Files Saved as :\n" + strFiles ); return 0; }
get_open_box_by_file_group
origin.h