#pragma once
|
|
#include "akControlPack/akTabCtrl.h"
|
// DlgTapCtrl ´ëÈ »óÀÚÀÔ´Ï´Ù.
|
typedef std::vector<CWnd*> VectorWndPtr;
|
typedef std::vector<CWnd*>::iterator VectorWndPtrIt;
|
|
typedef std::vector<CString> VectorString;
|
typedef std::vector<CString>::iterator VectorStringIt;
|
typedef std::vector<CString>::const_iterator constVectorStringIt;
|
|
interface IDialogTabCtrl2Parent
|
{
|
//virtual void DC2P_SetUserCommand(int nCommand) = 0;
|
};
|
|
class DlgTapCtrl : public CDialogEx, public IUpdateProcessStatus
|
{
|
DECLARE_DYNAMIC(DlgTapCtrl)
|
|
public:
|
DlgTapCtrl(CWnd* pParent = NULL); // Ç¥ÁØ »ý¼ºÀÚÀÔ´Ï´Ù.
|
virtual ~DlgTapCtrl();
|
void AddWndPtr(CWnd *pWnd, const CString& strName);
|
virtual void UpdateProcessStatus(int nLineType, int nMachineType, int nProcessStatus, const CGlassResult* pGlassResult);
|
|
// ´ëÈ »óÀÚ µ¥ÀÌÅÍÀÔ´Ï´Ù.
|
enum { IDD = IDD_DIg_TAP_CTRL };
|
|
protected:
|
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV Áö¿øÀÔ´Ï´Ù.
|
|
DECLARE_MESSAGE_MAP()
|
|
public:
|
afx_msg void OnBnClickedOk();
|
afx_msg void OnBnClickedCancel();
|
|
protected:
|
CakTabCtrl m_ctrlTabCtrl;
|
VectorWndPtr m_vecWndPtr;
|
VectorString m_vecString;
|
|
void InitTabControl();
|
IDialogTabCtrl2Parent* m_pDC2P;
|
public:
|
void SetActiveDialog(int nTabIdx);
|
afx_msg void OnSize(UINT nType, int cx, int cy);
|
afx_msg void OnTcnSelchangeTabControl(NMHDR *pNMHDR, LRESULT *pResult);
|
virtual BOOL OnInitDialog();
|
|
void SetDC2P(IDialogTabCtrl2Parent* pDC2P) { m_pDC2P = pDC2P; }
|
|
afx_msg BOOL OnEraseBkgnd(CDC* pDC);
|
afx_msg HBRUSH OnCtlColor(CDC* pDC, CWnd* pWnd, UINT nCtlColor);
|
};
|