//---------------------------------------------------------------------------- // Project Puh // jyu // Copyright © 1996. All Rights Reserved. // // SUBSYSTEM: Puh Application // FILE: puhapp.cpp // AUTHOR: vl // // OVERVIEW // ~~~~~~~~ // Source file for implementation of TPuhApp (TApplication). // //---------------------------------------------------------------------------- #include #include #include #include "puhapp.h" #include "formpuh.h" // Definition of client class. //{{TPuhApp Implementation}} // // Build a response table for all messages/commands handled // by the application. // DEFINE_RESPONSE_TABLE1(TPuhApp, TApplication) //{{TPuhAppRSP_TBL_BEGIN}} EV_COMMAND(CM_HELPABOUT, CmHelpAbout), //{{TPuhAppRSP_TBL_END}} END_RESPONSE_TABLE; //-------------------------------------------------------- // TPuhApp // TPuhApp::TPuhApp() : TApplication("Puh") { // INSERT>> Your constructor code here. } TPuhApp::~TPuhApp() { // INSERT>> Your destructor code here. } //-------------------------------------------------------- // TPuhApp // ~~~~~ // Application intialization. // void TPuhApp::InitMainWindow() { if (nCmdShow != SW_HIDE) nCmdShow = (nCmdShow != SW_SHOWMINNOACTIVE) ? SW_SHOWNORMAL : nCmdShow; TSDIDecFrame* frame = new TSDIDecFrame(0, GetName(), 0, false); frame->SetFlag(wfShrinkToClient); // Assign ICON w/ this application. // frame->SetIcon(this, IDI_SDIAPPLICATION); frame->SetIconSm(this, IDI_SDIAPPLICATION); SetMainWindow(frame); } //{{TSDIDecFrame Implementation}} TSDIDecFrame::TSDIDecFrame(TWindow* parent, const char far* title, TWindow* clientWnd, bool trackMenuSelection, TModule* module) : TDecoratedFrame(parent, title, !clientWnd ? new TFormPuh(0) : clientWnd, trackMenuSelection, module) { // INSERT>> Your constructor code here. } TSDIDecFrame::~TSDIDecFrame() { // INSERT>> Your destructor code here. } //-------------------------------------------------------- // TPuhApp // ~~~~~~~~~~~ // Menu Help About Puh command // void TPuhApp::CmHelpAbout() { } int OwlMain(int , char* []) { TBIVbxLibrary vbxSupport; // This application has VBX controls. TPuhApp app; return app.Run(); }