99 lines
2.5 KiB
C++
99 lines
2.5 KiB
C++
#if !defined(AFX_OPCREATE3DSPTDLG_H__D3C16E44_742D_410D_8B6B_9A482B60A785__INCLUDED_)
|
|
#define AFX_OPCREATE3DSPTDLG_H__D3C16E44_742D_410D_8B6B_9A482B60A785__INCLUDED_
|
|
|
|
#if _MSC_VER > 1000
|
|
#pragma once
|
|
#endif // _MSC_VER > 1000
|
|
// OpCreate3DSptDlg.h : header file
|
|
//
|
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
// COpCreate3DSptDlg dialog
|
|
|
|
//一段可是实现窗口自适应大小的代码
|
|
BOOL Zoom_Window(HWND hWnd, CRect TaregetEX_Pos, LPRECT mOrgRect=NULL, BOOL bZoomEx_Only=FALSE);
|
|
|
|
class COpCreate3DSptDlg : public CDialog
|
|
{
|
|
// Construction
|
|
public:
|
|
CString GetPoleStart();
|
|
CString GetPoleDistance();
|
|
CString GetRect();
|
|
CString GetPoleStep();
|
|
// COpCreate3DSptDlg(CWnd* pParent = NULL); // standard constructor
|
|
COpCreate3DSptDlg(CScript3D* const pNewScript, CLinkList<CMedium*>* pMedLinkList, INT_PTR* pRet, CWnd* pParent = NULL);
|
|
// Dialog Data
|
|
//{{AFX_DATA(COpCreate3DSptDlg)
|
|
enum { IDD = IDD_OP_SPT_3D_DB_C };
|
|
CListBox m_chnumber;
|
|
CComboBox m_chamount;
|
|
CButton m_diagonal;
|
|
CComboBox m_ar;
|
|
CString m_operator;
|
|
CString m_desc;
|
|
CString m_scriptName;
|
|
int m_x1;
|
|
int m_x0;
|
|
int m_y1;
|
|
int m_y0;
|
|
CString m_area;
|
|
int m_c1x;
|
|
int m_c1y;
|
|
int m_c2x;
|
|
int m_c2y;
|
|
float m_pDisX;
|
|
float m_pDisY;
|
|
int m_pStepX;
|
|
int m_pStepY;
|
|
int m_ScriptNum;
|
|
CTime m_DeDate;
|
|
float m_pStartX;
|
|
float m_pStartY;
|
|
//}}AFX_DATA
|
|
|
|
|
|
// Overrides
|
|
// ClassWizard generated virtual function overrides
|
|
//{{AFX_VIRTUAL(COpCreate3DSptDlg)
|
|
public:
|
|
virtual BOOL Create(UINT nID, CWnd* pParentWnd);
|
|
virtual BOOL PreTranslateMessage(MSG* pMsg);
|
|
protected:
|
|
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
|
|
//}}AFX_VIRTUAL
|
|
|
|
// Implementation
|
|
protected:
|
|
|
|
// Generated message map functions
|
|
//{{AFX_MSG(COpCreate3DSptDlg)
|
|
virtual BOOL OnInitDialog();
|
|
afx_msg void OnSize(UINT nType, int cx, int cy);
|
|
afx_msg void OnOk();
|
|
afx_msg void OnCancel();
|
|
afx_msg void OnSelchangeSptAr();
|
|
//}}AFX_MSG
|
|
DECLARE_MESSAGE_MAP()
|
|
|
|
private:
|
|
int PostionToStepPostion(int f_originalPostion);
|
|
void _save_scr(int q, struct _scriptor *scr);
|
|
int zoneCount(CString zone);
|
|
CScript3D* m_pNewScript;
|
|
bool CheckControlVaild();
|
|
CLinkList<CMedium*>* m_pMedLinkList;
|
|
CHandleProcessor m_handleProcessor;
|
|
int m_zone[8];
|
|
|
|
CString m_Rect;
|
|
CString m_PoleDistance;
|
|
CString m_PoleStep;
|
|
CString m_PoleStart;
|
|
};
|
|
|
|
//{{AFX_INSERT_LOCATION}}
|
|
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
|
|
|
|
#endif // !defined(AFX_OPCREATE3DSPTDLG_H__D3C16E44_742D_410D_8B6B_9A482B60A785__INCLUDED_)
|