#pragma once #include "afxcmn.h" #include "IOCPServer.h" class CClientLog : public CDialogBase { DECLARE_DYNAMIC(CClientLog) public: CClientLog(CWnd* pParent, Server* pServer, CONTEXT_OBJECT* pContext); virtual ~CClientLog(); virtual void OnReceiveComplete(); void AppendLog(const std::string& text); protected: virtual BOOL OnInitDialog(); virtual void DoDataExchange(CDataExchange* pDX); afx_msg void OnDestroy(); afx_msg void OnSize(UINT nType, int cx, int cy); afx_msg LRESULT OnReportLog(WPARAM wParam, LPARAM lParam); DECLARE_MESSAGE_MAP() private: CEdit m_editLog; #ifdef AFX_DESIGN_TIME enum { IDD = IDD_DIALOG_CLIENT_LOG }; #endif };