#pragma once #include "LogInfo.h" // CLogView ºäÀÔ´Ï´Ù. class CLogList; class CCommander; class CLogView : public CScrollView { DECLARE_DYNCREATE(CLogView) protected: CLogView(); virtual ~CLogView(); public: #ifdef _DEBUG virtual void AssertValid() const; #ifndef _WIN32_WCE virtual void Dump(CDumpContext& dc) const; #endif #endif protected: virtual void OnDraw(CDC* pDC); // ÀÌ ºä¸¦ ±×¸®±â À§ÇØ ÀçÁ¤ÀǵǾú½À´Ï´Ù. virtual void OnInitialUpdate(); // »ý¼ºµÈ ÈÄ Ã³À½ÀÔ´Ï´Ù. DECLARE_MESSAGE_MAP() public: afx_msg void OnSize(UINT nType, int cx, int cy); protected: virtual BOOL OnCommand(WPARAM wParam, LPARAM lParam); public: void InsertLog(LogInfo& log); void FlushLog(); void SetCommand(const wstring& command); private: CLogList* m_pList; vector m_Logs; CCommander* m_pCmdLine; CButton* m_pCmdBtn; };