SDC C-Project CF Review 프로그램
LYW
2021-07-23 55615eba335d4cbc1f83330dc5078fe073034b7d
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
#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);
};