34 lines
631 B
C++
34 lines
631 B
C++
#ifndef _BWINDOW_HPP_
|
|
#define _BWINDOW_HPP_
|
|
#include <mdiwin/window.hpp>
|
|
|
|
class BWindow : public Window
|
|
{
|
|
public:
|
|
enum {WindowHeight=16,MaxText=100};
|
|
BWindow(HWND hParent);
|
|
~BWindow();
|
|
static void registerClass(void);
|
|
static char far *className();
|
|
void setText(char *text);
|
|
private:
|
|
long WndProc(UINT message,WPARAM wParam,LPARAM lParam);
|
|
void yieldTask(void);
|
|
void setText();
|
|
void resize(int NewSize);
|
|
void paint(void);
|
|
HINSTANCE mhInstance;
|
|
HWND mhParent;
|
|
static char szClassName[28];
|
|
static char szMenuName[6];
|
|
char mLastText[MaxText+1];
|
|
};
|
|
|
|
inline
|
|
char far*BWindow::className()
|
|
{
|
|
return szClassName;
|
|
}
|
|
#endif
|
|
|