51Testing软件测试论坛

标题: 用VC编的第三方控件映射为WinTable应该怎么做 [打印本页]

作者: liyaguang    时间: 2008-11-11 18:26
标题: 用VC编的第三方控件映射为WinTable应该怎么做
class CxGridConfigDlg : public CxDialog
{
// Construction
public:
CxGridConfigDlg(CWnd* pParent = NULL);   //  standard constructor
void ChildWindowOnSize();
void Flush();
COLORREF ConvertToComplementaryColor(COLORREF  Color);
char m_szGridName[STR_ROW_SIZE];
char m_szDefConfigFilePath[MAX_PATH];
GRID_ATTR m_Attr;
// Dialog Data
//{{AFX_DATA(CxGridConfigDlg)
enum { IDD = IDD_DIALOG_XGRIDCONFIG_Config };
CxStatic m_staticTitleRowHeight;
CxStatic m_staticTextRowHeight;
CxButton m_buttonEvenColor;
CxEdit m_editTitleRowHeight;
CxE
dit m_editTextRowHeight;
CxCheckBox m_checkOEFlag;
CxButton m_buttonTitleTextFont;
CxButton m_buttonTitleTextColor;
CxButton m_buttonTitleBackColor;
CxButton m_buttonTextFont;
CxButton m_buttonTextColor;
CxButton m_buttonOddColor;
CxButton m_buttonBackColor;
CxStatic m_staticFixedColumn;
CxEdit m_editFixedColumn;
CxButton m_ButtonOk;
CxButton m_buttonCancel;
CxButton m_buttonDefault;
//}}AFX_DATA
CxGridSetup m_Grid;
CxColorTemplet m_ColorBack;
CxColorTemplet m_ColorTitleText;
CxColorTemplet m_ColorText;
CxColorTemplet m_Co
lorTitleBack;
CxColorTemplet m_ColorOdd;
CxColorTemplet m_ColorEven;

// Overrides
// ClassWizard generated virtual function  overrides
//{{AFX_VIRTUAL(CxGridConfigDlg)
public:
virtual BOOL PreTranslateMessage(MSG* pMsg);
protected:
virtual void DoDataExchange(CDataExchange* pDX);     // DDX/DDV support
virtual BOOL OnNotify(WPARAM wParam, LPARAM  lParam, LRESULT* pResult);
virtual BOOL OnCommand(WPARAM wParam, LPARAM  lParam);
//}}AFX_VIRTUAL
// Implementation
protected:
// Generated message map functions
//{{AFX_MSG(CxGridCon
figDlg)
virtual BOOL OnInitDialog();
afx_msg void OnSize(UINT nType, int cx, int cy);
afx_msg void OnBUTTONOk();
afx_msg void OnBUTTONCancel();
afx_msg void OnBUTTONLoadDefault();
afx_msg void OnKillfocusEDITFixedColumn();
afx_msg void OnCHECKOEFlag();
afx_msg void OnBUTTONBackColor();
afx_msg void OnBUTTONTitleTextFont();
afx_msg void OnBUTTONTitleTextColor();
afx_msg void OnBUTTONTitleBackColor();
afx_msg void OnBUTTONTextFont();
afx_msg void OnBUTTONTextColor();
afx_msg void OnBUTTONOddColor();
afx_msg void OnBUTTONEvenColor();
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};




欢迎光临 51Testing软件测试论坛 (http://bbs.51testing.com/) Powered by Discuz! X3.2