
// BaseMoveDlg.h : header file
//

#pragma once


// CBaseMoveDlg dialog
class CBaseMoveDlg : public CDialogEx
{
// Construction
public:
	CBaseMoveDlg(CWnd* pParent = NULL);	// standard constructor

// Dialog Data
	enum { IDD = IDD_BASEMOVE_DIALOG };
	CComboBox	m_ComboChange;
	CEdit	m_TextComment;
	CEdit	m_TextDistance;
	CEdit	m_TextSSpeed;
	CEdit	m_TextDecelTime;
	CEdit	m_TextStartSpeed;
	CEdit	m_TextResolution;
	CComboBox	m_ComboCoordinate;
	CEdit	m_TextAccelTime;
	CEdit	m_TextTargetSpeed;
	CEdit	m_DeviceName;
	CComboBox	m_ComboTargetAxis;

	protected:
	virtual void DoDataExchange(CDataExchange* pDX);	// DDX/DDV support


// Implementation
protected:
	HICON m_hIcon;
	void DispComment(TCHAR *func, TCHAR *msg);

	// Generated message map functions
	virtual BOOL OnInitDialog();
	afx_msg void OnPaint();
	afx_msg HCURSOR OnQueryDragIcon();
	DECLARE_MESSAGE_MAP()
public:
	afx_msg void OnEnChangeDeviceName();
	afx_msg void OnCbnSelchangeComboTargetAxis();
	afx_msg void OnBnClickedOptionPtp();
	afx_msg void OnBnClickedOptionJog();
	afx_msg void OnBnClickedOptionOrg();
	afx_msg void OnBnClickedComCw();
	afx_msg void OnBnClickedComCcw();
	afx_msg void OnBnClickedComStop();
	afx_msg void OnBnClickedComSdStop();
	afx_msg void OnCbnSelchangeComboCrdinate();
	afx_msg void OnCbnSelchangeComboChange();
	afx_msg void OnBnClickedComChange();
	afx_msg void OnBnClickedCancel();
private:
	bool SetMoveParam();
	bool GetMoveParam();
};
