00001
00002 #include "WinGUI.h"
00003
00004 #ifndef WINGUIOSTEAM_H
00005 #define WINGUIOSTEAM_H
00006
00007 #define USECONSOLE // rather than create a window, that doesn't work now
00008
00009 class logbuf;
00010 #include <iostream>
00011 using namespace std;
00012
00013 class WinGUIostream : public ostream
00014 {
00015 public:
00016 WinGUIostream(const char* name, HWND parent, HINSTANCE hInst);
00017
00018 ~WinGUIostream();
00019
00020 void clear();
00021 private:
00022 logbuf* _buf;
00023 #ifndef USECONSOLE
00024 HWND _win;
00025 #endif
00026 };
00027
00028
00029 #endif