SendDlg.h
上传用户:weimei12
上传日期:2022-08-11
资源大小:185k
文件大小:2k
- /********************************************************************
- created: 2008:12:17 14:24
- author: 李欣
- filename: c:MyProjectSimpleMailSimpleMailSendDlg.h
- classname: CSendDlg
- purpose: the dialog for writing the mail
- *********************************************************************/
- #pragma once
- #include "afxwin.h"
- // CSendDlg dialog
- class CSendDlg : public CDialog
- {
- DECLARE_DYNAMIC(CSendDlg)
- public:
- CSendDlg(CWnd* pParent = NULL); // standard constructor
- virtual ~CSendDlg();
- // Dialog Data
- enum { IDD = IDD_DLG_SEND_EDIT };
- protected:
- virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
- DECLARE_MESSAGE_MAP()
- public:
- afx_msg void OnBnClickedBtnSend();
- afx_msg void OnBnClickedBtnAccessory();
- afx_msg void OnDropFiles(HDROP hDropInfo);
- ///<summary>
- /// delete the specified file
- ///</summary>
- afx_msg LRESULT DeleteAttachFile(WPARAM wParam, LPARAM lParam);
- virtual BOOL OnInitDialog();
-
- CString m_strRcps;
- CString m_strCCRcps;
- CString m_strBCCRcps;
- CString m_strTopic;
- CString m_strContent;
- CStringArray m_arrAttachFiles;
- private:
- ///<summary>
- /// create the edit for the accessory
- ///</summary>
- void CreateEdit();
- ///<summary>
- /// update the edit of the accessory
- ///</summary>
- void UpdateEditContent(LPCTSTR pszPath);
- ///<summary>
- /// format the image with the file infomation
- ///</summary>
- HBITMAP FormatImage(CImageList& list, const int num, LPCTSTR pszName);
- ///<summary>
- /// Draw the file icon with the file name and the file size
- ///</summary>
- void DrawFileIcon(LPCTSTR pszPath, LPCTSTR pszName);
- ///<summary>
- /// the edit used for displaying the attached files
- ///</summary>
- CExpandEditCtrl* m_pEditAttach;
- ///<summary>
- /// ole object used for inserting bitmap
- ///</summary>
- IRichEditOle* m_pRichEditOle;
- };