home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
World of Shareware - Software Farm 2
/
wosw_2.zip
/
wosw_2
/
CPROG
/
TOOLOW.ZIP
/
TUTOR.HPP
< prev
next >
Wrap
C/C++ Source or Header
|
1992-04-22
|
3KB
|
91 lines
//***************************************************************************
// tutor.hpp - Application Class Definitions
// 4/22/92 - 6:24:06pm
// John Doe
//***************************************************************************
_CLASSDEF(Main)
class Main : public TWindow
{
public:
Main(PTWindowsObject AParent);
virtual void CloseWindow();
virtual void SetupWindow();
virtual LPSTR GetClassName() {return "Main";}
virtual void GetWindowClass(WNDCLASS&);
virtual void MsgMainApp(RTMessage Msg) = [CM_FIRST+CM_MAINAPP];
virtual void MsgMainDialog(RTMessage Msg) = [CM_FIRST+CM_MAINDIALOG];
virtual void MsgMainWindow(RTMessage Msg) = [CM_FIRST+CM_MAINWINDOW];
virtual void MsgNew(RTMessage Msg) = [CM_FIRST+CM_NEW];
virtual void MsgOpen(RTMessage Msg) = [CM_FIRST+CM_OPEN];
virtual void MsgSave(RTMessage Msg) = [CM_FIRST+CM_SAVE];
virtual void MsgExit(RTMessage Msg) = [CM_FIRST+CM_EXIT];
virtual void MsgAbout(RTMessage Msg) = [CM_FIRST+CM_ABOUT];
};
_CLASSDEF(NewWin)
class NewWin : public TWindow
{
public:
NewWin(PTWindowsObject AParent);
virtual void CloseWindow();
virtual void SetupWindow();
virtual LPSTR GetClassName() {return "NewWin";}
virtual void GetWindowClass(WNDCLASS&);
};
_CLASSDEF(About)
class About : public TDialog
{
char szWorkStr[81], *p; // Work Buffer
public:
About(PTWindowsObject AParent, Pchar DlgName);
virtual void CloseWindow(int ARetValue);
virtual void SetupWindow();
virtual BOOL CanClose();
};
_CLASSDEF(Address)
class Address : public TDialog
{
char szWorkStr[81], *p; // Work Buffer
PTEdit Lname, Name, Title, Coname, Street1, Street2, City, State, Zip, Bphone,
Hphone, Fax, Comments;
PTRadioButton Male, Female;
PTComboBox Addtype;
public:
Address(PTWindowsObject AParent, Pchar DlgName);
virtual void CloseWindow(int ARetValue);
virtual void SetupWindow();
virtual BOOL CanClose();
virtual void MsgSearch(RTMessage Msg) = [ID_FIRST+ID_SEARCH];
};
_CLASSDEF(Search)
class Search : public TDialog
{
char szWorkStr[81], *p; // Work Buffer
PTListBox List;
public:
Search(PTWindowsObject AParent, Pchar DlgName);
virtual void CloseWindow(int ARetValue);
virtual void SetupWindow();
virtual BOOL CanClose();
};
class TutorApp : public TApplication {
public:
TutorApp(LPSTR AName, HANDLE hInstance,
HANDLE hPrevInstance, LPSTR lpCmd,
int nCmdShow)
: TApplication(AName, hInstance,
hPrevInstance, lpCmd, nCmdShow) {};
virtual void InitMainWindow();
};