PreviewDlg.h 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. #if !defined(AFX_PREVIEWDLG_H__AEE8E213_E1D2_4F2E_BE0A_0FC63F32807C__INCLUDED_)
  2. #define AFX_PREVIEWDLG_H__AEE8E213_E1D2_4F2E_BE0A_0FC63F32807C__INCLUDED_
  3. #if _MSC_VER > 1000
  4. #pragma once
  5. #endif // _MSC_VER > 1000
  6. // PreviewDlg.h : header file
  7. //
  8. /////////////////////////////////////////////////////////////////////////////
  9. // PreviewDlg dialog
  10. #include "ShowPicStatic2.h"
  11. #include "HyperLink.h"
  12. class PreviewDlg : public CDialog
  13. {
  14. CStringArray m_patharray;
  15. BOOL m_bMin;
  16. int m_pos;
  17. int m_npages;
  18. int m_ncurpage;
  19. ShowPicStatic2 m_picctrl[7];
  20. CHyperLink m_link1;
  21. CHyperLink m_link2;
  22. CHyperLink m_link3;
  23. // Construction
  24. public:
  25. void ShowPic2();
  26. void NextPage();
  27. void PrePage();
  28. void ShowPic(int pos);
  29. void LinkClick(CString str);
  30. void ShowNormal();
  31. void ShowMin();
  32. SolidBrush *g_pBlackBrush;
  33. SolidBrush *g_pRedBrush;
  34. void InitCtrl();
  35. PreviewDlg(CWnd* pParent = NULL); // standard constructor
  36. CStringArray *m_pPathArray;
  37. // Dialog Data
  38. //{{AFX_DATA(PreviewDlg)
  39. enum { IDD = IDD_DIALOG30 };
  40. // NOTE: the ClassWizard will add data members here
  41. //}}AFX_DATA
  42. // Overrides
  43. // ClassWizard generated virtual function overrides
  44. //{{AFX_VIRTUAL(PreviewDlg)
  45. protected:
  46. virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
  47. //}}AFX_VIRTUAL
  48. // Implementation
  49. protected:
  50. // Generated message map functions
  51. //{{AFX_MSG(PreviewDlg)
  52. virtual BOOL OnInitDialog();
  53. afx_msg void OnDestroy();
  54. afx_msg BOOL OnEraseBkgnd(CDC* pDC);
  55. afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
  56. //}}AFX_MSG
  57. DECLARE_MESSAGE_MAP()
  58. };
  59. //{{AFX_INSERT_LOCATION}}
  60. // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
  61. #endif // !defined(AFX_PREVIEWDLG_H__AEE8E213_E1D2_4F2E_BE0A_0FC63F32807C__INCLUDED_)