Advertisement
Advertisement
| 10.09.2008 at 12:01PM PDT, ID: 23802049 | Points: 500 |
|
[x]
Attachment Details
|
||
1: 2: 3: 4: 5: 6: 7: 8: 9: 10: 11: 12: 13: 14: 15: 16: 17: 18: 19: 20: |
CCustomFileDialog::CCustomFileDialog( ...):CFileDialog(true)
{
...
m_ofn.Flags |= (OFN_ENABLETEMPLATE);
m_ofn.lpTemplateName = MAKEINTRESOURCE (IDD_FILE_OPENSAVE); // IDD_FILE_OPENSAVE is custom file open save dialog
m_ofn.hInstance = AfxGetResourceHandle();
...
}
CCustomFileDialog *pDlg = NULL;
pDlg = new CFileDialogSC(...);
if (pDlg->DoModal()== IDOK)
{
...
}
char buffer[256];
sprintf(buffer, "DoModal Failled Error %d", CommDlgExtendedError());
MessageBox(NULL, buffer, "", MB_OK);
delete pDlg;
|