UTextInputDlg.h
Upload User: liaoyin
Upload Date: 2022-06-19
Package Size: 1926k
Code Size: 2k
Category:

Graph Recognize

Development Platform:

Visual C++

  1. #if !defined(AFX_UTEXTINPUTDLG_H__6B315A4C_1F7B_4D7E_B581_08A120785E16__INCLUDED_)
  2. #define AFX_UTEXTINPUTDLG_H__6B315A4C_1F7B_4D7E_B581_08A120785E16__INCLUDED_
  3. #if _MSC_VER > 1000
  4. #pragma once
  5. #endif // _MSC_VER > 1000
  6. // UTextInputDlg.h : header file
  7. //
  8. int CALLBACK EnumFontFamProc(LPENUMLOGFONT lpelf,LPNEWTEXTMETRIC lpntm,DWORD nFontType,long lparam);
  9. /////////////////////////////////////////////////////////////////////////////
  10. // CUTextInputDlg dialog
  11. class CUTextInputDlg : public CDialog
  12. {
  13. // Construction
  14. public:
  15. CUTextInputDlg(CWnd* pParent = NULL);   // standard constructor
  16.     CString getsTextEdit() { return m_sTextEdit; }
  17.     int getiFontHeight() { return m_iFontHeight; }
  18.     int getiFontSpace() { return m_iFontSpace; }
  19.     CString getsFontFaceName() { return m_sFontFaceName; }
  20. // Dialog Data
  21. //{{AFX_DATA(CUTextInputDlg)
  22. enum { IDD = IDD_TEXT_INPUT };
  23. CComboBox m_cFontFaceName;
  24. CString m_sTextEdit;
  25. int m_iFontHeight;
  26. int m_iFontSpace;
  27. //}}AFX_DATA
  28. // Overrides
  29. // ClassWizard generated virtual function overrides
  30. //{{AFX_VIRTUAL(CUTextInputDlg)
  31. protected:
  32. virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
  33. //}}AFX_VIRTUAL
  34. // Implementation
  35. protected:
  36. // Generated message map functions
  37. //{{AFX_MSG(CUTextInputDlg)
  38. virtual void OnOK();
  39. virtual BOOL OnInitDialog();
  40. afx_msg void OnSelchangeFontFaceName();
  41. //}}AFX_MSG
  42. DECLARE_MESSAGE_MAP()
  43. protected:
  44.     CString m_sFontFaceName;
  45. protected:
  46.     void save();
  47.     void load();
  48.     void fillFontFaceName();
  49. };
  50. //{{AFX_INSERT_LOCATION}}
  51. // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
  52. #endif // !defined(AFX_UTEXTINPUTDLG_H__6B315A4C_1F7B_4D7E_B581_08A120785E16__INCLUDED_)