Source code of Windows XP (NT5)
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.

70 lines
1.6 KiB

  1. #if !defined(AFX_HTMLDLG_H__D12B6CC3_A5CF_429A_9932_F562CF30A563__INCLUDED_)
  2. #define AFX_HTMLDLG_H__D12B6CC3_A5CF_429A_9932_F562CF30A563__INCLUDED_
  3. #if _MSC_VER > 1000
  4. #pragma once
  5. #endif // _MSC_VER > 1000
  6. // HtmlDlg.h : header file
  7. //
  8. #include "HtmlCtrl.h"
  9. #define DWORD_ALIGNED(bits) (((bits) + 31) / 32 * 4)
  10. /////////////////////////////////////////////////////////////////////////////
  11. // CHtmlDlg dialog
  12. class CHtmlDlg : public CDialog
  13. {
  14. // Construction
  15. public:
  16. CHtmlDlg(CWnd* pParent = NULL); // standard constructor
  17. // Dialog Data
  18. //{{AFX_DATA(CHtmlDlg)
  19. enum { IDD = IDD_HTML };
  20. // NOTE: the ClassWizard will add data members here
  21. //}}AFX_DATA
  22. // Overrides
  23. // ClassWizard generated virtual function overrides
  24. //{{AFX_VIRTUAL(CHtmlDlg)
  25. protected:
  26. virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
  27. //}}AFX_VIRTUAL
  28. public:
  29. CString m_HtmlFile;
  30. CString m_TemplateBitmapFile;
  31. CString m_OutputBitmapFile;
  32. private:
  33. CHtmlCtrl m_htmlCtrl;
  34. UINT_PTR m_nTimerID;
  35. int m_bitw;
  36. int m_bith;
  37. int m_biCompression;
  38. CString m_BmpFile;
  39. private:
  40. void Capture();
  41. CString GetTemplateBmp();
  42. unsigned char* Compress(int cMode, unsigned char* bmBits, int width, int& PictureSize);
  43. // Implementation
  44. protected:
  45. // Generated message map functions
  46. //{{AFX_MSG(CHtmlDlg)
  47. virtual BOOL OnInitDialog();
  48. afx_msg void OnTimer(UINT nIDEvent);
  49. //}}AFX_MSG
  50. DECLARE_MESSAGE_MAP()
  51. };
  52. //{{AFX_INSERT_LOCATION}}
  53. // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
  54. #endif // !defined(AFX_HTMLDLG_H__D12B6CC3_A5CF_429A_9932_F562CF30A563__INCLUDED_)