Files
envi-code/SourceCode/Code2026/tg_shs/shs_annotate/BaseTextDlg.h
T
2026-09-28 15:28:50 +08:00

76 lines
2.1 KiB
C++

#if !defined(AFX_BASETEXTDLG_H__3FE5BCB5_7FC4_4DF7_9CE3_E30CCD5E9DB7__INCLUDED_)
#define AFX_BASETEXTDLG_H__3FE5BCB5_7FC4_4DF7_9CE3_E30CCD5E9DB7__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// BaseTextDlg.h : header file
#include "Resource.h"
/////////////////////////////////////////////////////////////////////////////
// CBaseTextDlg dialog
class CBaseTextDlg : public CModelessDialog
{
// Construction
public:
DECLARE_DYNAMIC(CBaseTextDlg)
CBaseTextDlg(UINT IDD, CWnd* pParent = NULL); // standard constructor
CString m_strInputText;
CToolBar m_toolbar;
BOOL GetPosition(int& h, int& l);
// Dialog Data
//{{AFX_DATA(CBaseTextDlg)
CComboBox m_comboStyleName;
static CString m_strFontStyle;
CString m_strHeight;
//}}AFX_DATA
// Add by lcf on 2005-06-24
BOOL m_bPost;
CWnd *m_pCurWnd;
// Add by lcf On 2005-07-01
int m_nOperCode;
// sg add 090324,记录调用“词库”时,是否只支持“单行文字”
BOOL m_bNeedSingleLineText;
BOOL GetPickText();
void GetTextHeight();
virtual CWnd* GetCurWnd() = 0;
virtual void UpdateInputText();
virtual void Dlg2Obj(TDbSymbWithText *pText);
virtual void Obj2Dlg(TDbSymbWithText *pText);
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CBaseTextDlg)
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
virtual void OnOK();
//}}AFX_VIRTUAL
afx_msg BOOL OnToolTipText(UINT nID, NMHDR* pNMHDR, LRESULT* pResult);
afx_msg void OnChar(UINT nID); // ON_COMMAND_RANGE handler
afx_msg void OnActivate(UINT nState, CWnd* pWndOther, BOOL bMinimized);
afx_msg void OnClose();
// Implementation
protected:
void LoadTextStyle();
// Generated message map functions
//{{AFX_MSG(CBaseTextDlg)
virtual BOOL OnInitDialog();
afx_msg void OnSelchangeComboFongstyle();
afx_msg void OnButtonTextHeight();
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
protected:
static double g_nHeight;
};
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_BASETEXTDLG_H__3FE5BCB5_7FC4_4DF7_9CE3_E30CCD5E9DB7__INCLUDED_)