class CFileDialogEX : public CFileDialog { DECLARE_DYNAMIC(CFileDialogEX) public: CFileDialogEX(BOOL bOpenFileDialog, // TRUE for FileOpen, FALSE for FileSaveAs LPCTSTR lpszDefExt = NULL, LPCTSTR lpszFileName = NULL, DWORD dwFlags = OFN_HIDEREADONLY | OFN_OVERWRITEPROMPT, LPCTSTR lpszFilter = NULL, CWnd* pParentWnd = NULL); protected: //{{AFX_MSG(CFileDialogEX) virtual BOOL OnInitDialog(); afx_msg BOOL OnHelpInfo(HELPINFO* pHelpInfo); //}}AFX_MSG DECLARE_MESSAGE_MAP() virtual void OnFileNameChange(); virtual void OnFolderChange(); virtual BOOL OnFileNameOK(); };
//Code is getting Assert when calling the EditControl in my Custom File Dialog. void CFileDialogEX ::l_SetDescription(bool flag) { CRichEditCtrl *ptr = (CRichEditCtrl *)GetDlgItem(IDC_RICHEDIT_DESCRIPTION); //--> Getting NULL Pointer Here and Application Crash.... in VS2012. }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)