#ifndef _NNTP_LOGVIEW_HPP_ #define _NNTP_LOGVIEW_HPP_ #ifndef _COMMON_MDIWIN_HPP_ #include #endif #ifndef _COMMON_SMARTPOINTER_HPP_ #include #endif #ifndef _THREAD_MUTEX_HPP_ #include #endif class OwnerDrawList; class StatusBarEx; class LogView : public MDIWindow { public: LogView(void); virtual ~LogView(); void setText(const String &strLine); void clear(void); void print(void); protected: virtual void preRegister(WNDCLASS &wndClass); virtual void preCreate(MDICREATESTRUCT &createStruct); private: enum {ListBoxID=100,StatusBarID=101}; CallbackData::ReturnType createHandler(CallbackData &someCallbackData); CallbackData::ReturnType sizeHandler(CallbackData &someCallbackData); DWORD getText(Block &strLines); Callback mCreateHandler; Callback mSizeHandler; SmartPointer mListBox; SmartPointer mStatusBar; Mutex mMutex; }; #endif