#include <prdlgctl.h>
Public Member Functions | |
CCPrintToFileDialog (TCHAR *DefExt, TCHAR *FilterString) | |
Default constructor for the PrintToFile dialog. | |
~CCPrintToFileDialog () | |
Default destructor for the PrintToFile dialog. | |
virtual INT32 | DoModal () |
Displays the PrintToFile dlg modally, and returns the user's result. | |
LPSTR | GetFullPathNamePtr () |
Access to the static buffer that contains the full path name for the file to print to. | |
Private Attributes | |
String_64 | Title |
Static Private Attributes | |
static TCHAR | FileName [256] = {_T('\0')} |
Definition at line 327 of file prdlgctl.h.
|
Default constructor for the PrintToFile dialog.
Definition at line 2897 of file prdlgctl.cpp. 02897 : 02898 CFileDialog(FALSE, DefExt, FileName, OFN_HIDEREADONLY | OFN_OVERWRITEPROMPT, FilterString, NULL) 02899 { 02900 // String_256 Filt(_R(IDS_PRDLGCTL_PRINT_FILES_FILT_DLG)); // "Print files (*.prn) | *.prn | All files (*.*) | *.* ||" 02901 // CFileDialog::CFileDialog(FALSE, "prn", FileName, OFN_HIDEREADONLY | OFN_OVERWRITEPROMPT, (TCHAR *)Filt, NULL) 02902 02903 Title = String_64(_R(IDS_PRDLGCTL_PRINT_TO_FILE)); 02904 m_ofn.lpstrTitle = (TCHAR *)(Title); 02905 02906 // Translate filter into commdlg format (lots of \0) 02907 // m_strFilter = (TCHAR *)Filt; 02908 // TCHAR *pch = (TCHAR *)Filt; // modify the buffer in place 02909 02910 // MFC delimits with '|' not '\0' 02911 // while ((pch = camStrchr(pch, '|')) != NULL) 02912 // *pch++ = '\0'; 02913 02914 // m_ofn.lpstrFilter = m_strFilter; 02915 02916 }
|
|
Default destructor for the PrintToFile dialog.
Definition at line 2932 of file prdlgctl.cpp.
|
|
Displays the PrintToFile dlg modally, and returns the user's result.
Definition at line 2951 of file prdlgctl.cpp. 02952 { 02953 INT32 Result = CFileDialog::DoModal(); 02954 02955 if (Result == IDOK) 02956 { 02957 camStrncpy(FileName,GetPathName(),FILENAMEBUFSIZE); 02958 FileName[FILENAMEBUFSIZE-1] = '\0'; 02959 } 02960 02961 return Result; 02962 }
|
|
Access to the static buffer that contains the full path name for the file to print to.
Definition at line 2978 of file prdlgctl.cpp. 02979 { 02980 return FileName; 02981 }
|
|
Definition at line 338 of file prdlgctl.h. |
|
Definition at line 339 of file prdlgctl.h. |