1 // WorkWindow.cpp 2 3 #include <Application.h> 4 #include <Window.h> 5 #include <Button.h> 6 #include "WorkView.h" 7 #include "WorkWindow.h" 8 9 WorkWindow::WorkWindow(BRect rect) 10 : BWindow(rect, "Work Window", B_TITLED_WINDOW, B_WILL_DRAW) 11 { 12 SetPulseRate(1000000); // pulse once every 2 seconds 13 14 WorkView *pView; 15 BRect viewrect(Bounds()); 16 pView = new WorkView(viewrect); 17 18 AddChild(pView); 19 } 20 21 void 22 WorkWindow::MessageReceived(BMessage *pMsg) 23 { 24 switch (pMsg->what) { 25 default: 26 BWindow::MessageReceived(pMsg); 27 break; 28 } 29 }