84 lines
2.2 KiB
C++
84 lines
2.2 KiB
C++
#if !defined(AFX_MUTIROWTEXTDLG_H__541B162D_EE03_4274_93E5_A7B06601C745__INCLUDED_)
|
|
#define AFX_MUTIROWTEXTDLG_H__541B162D_EE03_4274_93E5_A7B06601C745__INCLUDED_
|
|
|
|
#if _MSC_VER > 1000
|
|
#pragma once
|
|
#endif // _MSC_VER > 1000
|
|
// MutiRowTextDlg.h : header file
|
|
//
|
|
|
|
|
|
#include "CharToolbarDlg.h"
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
// CMutiRowTextDlg dialog
|
|
|
|
class CMutiRowTextDlg : public CCharToolbarDlg
|
|
{
|
|
// Construction
|
|
public:
|
|
DECLARE_DYNAMIC(CMutiRowTextDlg)
|
|
CMutiRowTextDlg(BOOL bEdit, CWnd* pParent = NULL); // standard constructor
|
|
|
|
// Dialog Data
|
|
//{{AFX_DATA(CMutiRowTextDlg)
|
|
enum { IDD = IDD_MUTIROW_TEXT };
|
|
CButton m_ctrlOk;
|
|
CButton m_ctrlCancel;
|
|
CEdit m_editInputText;
|
|
CComboBox m_comboFontStyle;
|
|
CComboBox m_comboAlign;
|
|
//CString m_strInputText;
|
|
CString m_strHeight;
|
|
CString m_strPageWidth;
|
|
// modify by xly on 101222 记录多行文字的转角
|
|
//CString m_strRotation;
|
|
static CString m_strRotation;
|
|
|
|
CString m_strLineSpace;
|
|
//}}AFX_DATA
|
|
|
|
XStringList m_lstStyle;
|
|
CString m_strStyle;
|
|
CSize sizeDlg;
|
|
BOOL m_bInit;
|
|
BOOL m_bEditObj;
|
|
|
|
UINT m_nOldSizeX, m_nOldSizeY;
|
|
|
|
void ResetSize();
|
|
//BOOL GetPosition(int& h, int& l);
|
|
void LoadTextStyle();
|
|
virtual void Dlg2Obj(TDbMText *pText);
|
|
virtual void Obj2Dlg(TDbMText *pText);
|
|
//afx_msg BOOL OnToolTipText(UINT nID, NMHDR* pNMHDR, LRESULT* pResult);
|
|
//virtual afx_msg void OnChar(UINT nID); // ON_COMMAND_RANGE handler
|
|
|
|
|
|
// Overrides
|
|
// ClassWizard generated virtual function overrides
|
|
//{{AFX_VIRTUAL(CMutiRowTextDlg)
|
|
protected:
|
|
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
|
|
//}}AFX_VIRTUAL
|
|
|
|
// Implementation
|
|
protected:
|
|
|
|
// Generated message map functions
|
|
//{{AFX_MSG(CMutiRowTextDlg)
|
|
virtual BOOL OnInitDialog();
|
|
virtual void OnOK();
|
|
virtual void OnCancel();
|
|
afx_msg void OnButtonPagewidth();
|
|
afx_msg void OnButtonTextHeight();
|
|
afx_msg void OnSize(UINT nType, int cx, int cy);
|
|
afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
|
|
//}}AFX_MSG
|
|
DECLARE_MESSAGE_MAP()
|
|
};
|
|
|
|
//{{AFX_INSERT_LOCATION}}
|
|
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
|
|
|
|
#endif // !defined(AFX_MUTIROWTEXTDLG_H__541B162D_EE03_4274_93E5_A7B06601C745__INCLUDED_)
|