TextWriteDlg.h
上传用户:y440e3
上传日期:2010-03-08
资源大小:200k
文件大小:3k
源码类别:

GIS编程

开发平台:

Visual C++

  1. #if !defined(AFX_TEXTWRITEDLG_H__CDB83382_8B3E_11D2_AE7B_444553540000__INCLUDED_)
  2. #define AFX_TEXTWRITEDLG_H__CDB83382_8B3E_11D2_AE7B_444553540000__INCLUDED_
  3. #if _MSC_VER >= 1000
  4. #pragma once
  5. #endif // _MSC_VER >= 1000
  6. // TextWriteDlg.h : header file
  7. //
  8. /////////////////////////////////////////////////////////////////////////////
  9. // TextWriteDlg dialog
  10. class CDrawView;
  11. class TextWriteDlg : public CDialog
  12. {
  13. // Construction
  14. public:
  15. BOOL IsOpen();
  16. BOOL IsVisible();
  17. TextWriteDlg(CWnd* pParent = NULL);   // standard constructor
  18. TextWriteDlg(CWnd* pParent,CString Text,float FontHeight,float FontWide,float Angle1,float Angle2,float FontBetween);
  19. float m_FontHeight;
  20. float m_FontWide;
  21. float m_Angle1;
  22. float m_Angle2;
  23. float m_FontBetween;
  24. CDrawView *m_pView;
  25. // Dialog Data
  26. //{{AFX_DATA(TextWriteDlg)
  27. enum { IDD = ID_WRITE_TEXT };
  28. CString m_Text;
  29. //}}AFX_DATA
  30. void Init(CString Text,float FontHeight,float FontWide,float Angle1,float Angle2,float FontBetween);
  31. // Overrides
  32. // ClassWizard generated virtual function overrides
  33. //{{AFX_VIRTUAL(TextWriteDlg)
  34. protected:
  35. virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
  36. //}}AFX_VIRTUAL
  37. // Implementation
  38. protected:
  39. // Generated message map functions
  40. //{{AFX_MSG(TextWriteDlg)
  41. afx_msg void OnTextFont();
  42. afx_msg void OnChangeText();
  43. virtual void OnOK();
  44. virtual void OnCancel();
  45. virtual BOOL OnInitDialog();
  46. //}}AFX_MSG
  47. DECLARE_MESSAGE_MAP()
  48. };
  49. /////////////////////////////////////////////////////////////////////////////
  50. // TextFontDlg dialog
  51. class TextFontDlg : public CDialog
  52. {
  53. // Construction
  54. public:
  55. TextFontDlg(CWnd* pParent = NULL);   // standard constructor
  56. TextFontDlg(float FontHeight,float FontWide,float Angle1,float Angle2,float FontBetween,CWnd* pParent = NULL);
  57. // Dialog Data
  58. //{{AFX_DATA(TextFontDlg)
  59. enum { IDD = ID_TEXT_FONT };
  60. float m_FontHeight;
  61. float m_FontWide;
  62. float m_Angle1;
  63. float m_Angle2;
  64. float m_FontBetween;
  65. //}}AFX_DATA
  66. // Overrides
  67. // ClassWizard generated virtual function overrides
  68. //{{AFX_VIRTUAL(TextFontDlg)
  69. protected:
  70. virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
  71. //}}AFX_VIRTUAL
  72. // Implementation
  73. protected:
  74. // Generated message map functions
  75. //{{AFX_MSG(TextFontDlg)
  76. // NOTE: the ClassWizard will add member functions here
  77. //}}AFX_MSG
  78. DECLARE_MESSAGE_MAP()
  79. };
  80. //{{AFX_INSERT_LOCATION}}
  81. // Microsoft Developer Studio will insert additional declarations immediately before the previous line.
  82. #endif // !defined(AFX_TEXTWRITEDLG_H__CDB83382_8B3E_11D2_AE7B_444553540000__INCLUDED_)