Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

56 lines
1.7 KiB

  1. #ifndef _MEHOST_H
  2. #define _MEHOST_H
  3. #include "dochost.h"
  4. #include "mimeole.h"
  5. class CMeHost :
  6. public CDocHost
  7. {
  8. public:
  9. CMeHost();
  10. virtual ~CMeHost();
  11. virtual ULONG STDMETHODCALLTYPE AddRef();
  12. virtual ULONG STDMETHODCALLTYPE Release();
  13. HRESULT HrInit(HWND hwndMDIClient, IOleInPlaceFrame *pFrame);
  14. HRESULT HrLoadFile(LPSTR pszFile);
  15. HRESULT OnCommand(HWND hwnd, int id, WORD wCmd);
  16. LRESULT OnInitMenuPopup(HWND hwnd, HMENU hmenuPopup, UINT uPos);
  17. // IOleCommandTarget
  18. virtual HRESULT STDMETHODCALLTYPE QueryStatus(const GUID *, ULONG, OLECMD [], OLECMDTEXT *);
  19. virtual HRESULT STDMETHODCALLTYPE Exec(const GUID *, DWORD, DWORD, VARIANTARG *, VARIANTARG *);
  20. static BOOL CALLBACK ExtFmtDlgProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam);
  21. static BOOL CALLBACK ExtLangDlgProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam);
  22. virtual LRESULT WndProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam);
  23. private:
  24. BOOL m_fEditMode,
  25. m_fHTMLMode;
  26. char m_szFmt[256];
  27. WCHAR m_szFileW[MAX_PATH];
  28. IMimeMessage *m_pMsg;
  29. IMimeInternational *m_pIntl;
  30. HRESULT HrOpen(HWND hwnd);
  31. BOOL FmtDlgProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam);
  32. BOOL LangDlgProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam);
  33. HRESULT Save();
  34. HRESULT SaveAs();
  35. HRESULT SaveAsStationery();
  36. HRESULT SaveToFile(LPWSTR pszW);
  37. HRESULT SaveAsMhtmlTest();
  38. HCHARSET GetCharset();
  39. HRESULT BackRed();
  40. HRESULT ForeRed();
  41. HRESULT BackgroundPicture();
  42. };
  43. typedef CMeHost *LPMEHOST;
  44. #endif