#pragma once #include "afxwin.h" #include "CHCommonControls/FontStatic.h" // CDlgCommand 대화 상자입니다. // CDlgSystemInfo 대화 상자입니다. interface IDialogCommand2Parent { virtual void DC2P_SetUserCommand(int nCommand) = 0; }; class CDlgCommand : public CDialog, public IUpdateProcessStatus { DECLARE_DYNAMIC(CDlgCommand) public: CDlgCommand(CWnd* pParent = NULL); // 표준 생성자입니다. virtual ~CDlgCommand(); void SetDC2P(IDialogCommand2Parent* pDC2P) { m_pDC2P = pDC2P; } // PCControl status 2 parent virtual void UpdateProcessStatus(int nLineType, int nMachineType, int nProcessStatus, const CGlassResult* pGlassResult); // 대화 상자 데이터입니다. enum { IDD = IDD_DLG_COMMAND }; protected: int m_nProcessStatus; IDialogCommand2Parent* m_pDC2P; CFontStatic m_ctrlDateTime; CFontStatic m_ctrlSignalLoading; CFontStatic m_ctrlSignalAlignStart; CFontStatic m_ctrlSignalReadRawFile; CFontStatic m_ctrlSignalReviewStart; CFontStatic m_ctrlSignalReviewEnd; CFontStatic m_ctrlSignalUnloading; virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV 지원입니다. DECLARE_MESSAGE_MAP() public: afx_msg LRESULT OnPlcSignalUpdate(WPARAM wParam, LPARAM lParam); afx_msg LRESULT OnProcessStatusUpdate(WPARAM wParam, LPARAM lParam); afx_msg void OnBnClickedOk(); afx_msg void OnBnClickedCancel(); virtual BOOL OnInitDialog(); afx_msg void OnTimer(UINT_PTR nIDEvent); virtual BOOL PreTranslateMessage(MSG* pMsg); afx_msg void OnStnDblclickStaticPlcSignalLoading(); afx_msg void OnStnDblclickStaticPlcSignalAlignStart(); afx_msg void OnStnDblclickStaticPlcSignalReadRawFile(); afx_msg void OnStnDblclickStaticPlcSignalReviewStart(); afx_msg void OnStnDblclickStaticPlcSignalReviewEnd(); afx_msg void OnStnDblclickStaticPlcSignalUnloading(); afx_msg void OnStnDblclickStaticDateTime(); public: BOOL SetLineType(int nType); BOOL SetMachineType(int nType); protected: int m_nLineType; int m_nMachineType; public: afx_msg BOOL OnEraseBkgnd(CDC* pDC); afx_msg HBRUSH OnCtlColor(CDC* pDC, CWnd* pWnd, UINT nCtlColor); afx_msg void OnBnClickedButtonProgramexit(); CBitmapButton m_ButtonExit; // 0421 kyh 종료 버튼 비트맵추가 };