Category : C++ Source Code
Archive   : O2MBAR.ZIP
Filename : MDIMENU.H

 
Output of file : MDIMENU.H contained in archive : O2MBAR.ZIP
// *************************************************************** //
// Filename: MDIMenu.h //
// //
// Date: November 26, 1993 //
// //
// Description: //
// *************************************************************** //

#ifndef MDIMenu_H
#define MDIMenu_H

#include
#include
#include
#include
#include
#include
#include
#pragma hdrstop
#include "WhichDlg.h"
#include "MDIMenu.rh"

// --------------------------------------------------------------- //
// MDIMenuApplication //
// --------------------------------------------------------------- //
class TMDIMenuApp : public TApplication
{
public:
TMDIMenuApp();
~TMDIMenuApp();
void InitMainWindow();

TStatusBar *StatusBar;
TControlBar *ControlBar;
};

// --------------------------------------------------------------- //
// MDIMenuClient //
// --------------------------------------------------------------- //
class TMDIMenuClient : public TMDIClient
{
public:
TMDIMenuClient(TModule *module = 0);
~TMDIMenuClient();

void SetupWindow();
void CleanupWindow();

TMDIChild* InitChild();
DECLARE_RESPONSE_TABLE(TMDIMenuClient);
protected:
void CmCommon();
};

// --------------------------------------------------------------- //
// MDIMenuChild //
// --------------------------------------------------------------- //
class TMDIChildA : public TMDIChild
{
public:
TMDIChildA(TMDIClient &parent, const char far *title = 0,
TWindow *clientWnd = 0, BOOL shrinkToClient = FALSE,
TModule *module = 0);
~TMDIChildA();

void GetWindowClass(WNDCLASS& wndClass);
char *GetClassName();
void SetupWindow();
void CleanupWindow();

DECLARE_RESPONSE_TABLE(TMDIChildA);
protected:
void CmAction();
void EvMDIActivate(HWND hWndActivated, HWND hWndDeactivated);
TButtonGadget *Gadget;
BOOL Inserted;
};

class TMDIChildB : public TMDIChild
{
public:
TMDIChildB(TMDIClient &parent, const char far *title = 0,
TWindow *clientWnd = 0, BOOL shrinkToClient = FALSE,
TModule *module = 0);
~TMDIChildB();

void GetWindowClass(WNDCLASS& wndClass);
char *GetClassName();
void SetupWindow();
void CleanupWindow();

DECLARE_RESPONSE_TABLE(TMDIChildB);
protected:
void CmAction();
void EvMDIActivate(HWND hWndActivated, HWND hWndDeactivated);
TButtonGadget *Gadget;
BOOL Inserted;
};


#endif




  3 Responses to “Category : C++ Source Code
Archive   : O2MBAR.ZIP
Filename : MDIMENU.H

  1. Very nice! Thank you for this wonderful archive. I wonder why I found it only now. Long live the BBS file archives!

  2. This is so awesome! 😀 I’d be cool if you could download an entire archive of this at once, though.

  3. But one thing that puzzles me is the “mtswslnkmcjklsdlsbdmMICROSOFT” string. There is an article about it here. It is definitely worth a read: http://www.os2museum.com/wp/mtswslnk/