#include "prefix.h"

MyApp myApp;

class HelloWin : public WPMainWin {
public:
   HelloWin() { createWin("Hello"); }
   void paint(WPPaintDC &pdc) {
      WPRect clientArea = this;
      pdc.drawText(clientArea, "Hello, Windows++.",
         DT_SINGLELINE | DT_CENTER | DT_VCENTER);
   }
};

void MyApp::main()
{
   mainWin = new HelloWin;
   run();
}
