IDlgResults::GetFlags

The GetFlags method returns the flags contained in the DlgResults component, that were specified to control the File Save As dialog in the call to IFileSaveAsDlg::Initialize.

long lFlags = spIDlgResults->GetFlags();
Parameters
None.
Results
This method returns a Long containing the behavior control flags for the File Save As dialog.
Sample
The following is a fragment from the complete example for the IDialogResults interface.
   ...
   // Retrieve the filename and destination directory entered by the user
   IDlgResultsPtr spIDlgResults(spIFileSaveAsDlg);
   std::cout << "FileName=" << (LPCSTR) spIDlgResults->GetFileName() << std::endl;
   std::cout << "DirectoryName=" << (LPCSTR) spIDlgResults->GetDirectoryName() << std::endl;
   std::cout << "FullPathName=" << (LPCSTR) spIDlgResults->GetFullPathName() << std::endl;
   std::cout << "FilterIndex=" << spIDlgResults->GetFilterIndex() << std::endl;
   std::cout << "ErrorCode=" << spIDlgResults->GetErrorCode() << std::endl;
   std::cout << "ErrorMessage=" << (LPCSTR) spIDlgResults->GetErrorMessage() << std::endl;
   std::cout << "Flags=" << spIDlgResults->GetFlags() << std::endl;
   ...