39 lines
973 B
C++
39 lines
973 B
C++
#ifndef _NNTP_LOGVIEW_HPP_
|
|
#define _NNTP_LOGVIEW_HPP_
|
|
#ifndef _COMMON_MDIWIN_HPP_
|
|
#include <common/mdiwin.hpp>
|
|
#endif
|
|
#ifndef _COMMON_SMARTPOINTER_HPP_
|
|
#include <common/pointer.hpp>
|
|
#endif
|
|
#ifndef _THREAD_MUTEX_HPP_
|
|
#include <thread/mutex.hpp>
|
|
#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<String> &strLines);
|
|
|
|
Callback<LogView> mCreateHandler;
|
|
Callback<LogView> mSizeHandler;
|
|
SmartPointer<OwnerDrawList> mListBox;
|
|
SmartPointer<StatusBarEx> mStatusBar;
|
|
Mutex mMutex;
|
|
};
|
|
#endif |