home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
C Programming Starter Kit 2.0
/
SamsPublishing-CProgrammingStarterKit-v2.0-Win31.iso
/
bc45
/
step16.pak
/
STEP16.H
< prev
next >
Wrap
C/C++ Source or Header
|
1997-07-23
|
1KB
|
48 lines
//----------------------------------------------------------------------------
// ObjectWindows - (C) Copyright 1994 by Borland International
// Tutorial application -- step16.h
// Automation Server example
//----------------------------------------------------------------------------
#if !defined(STEP16_H)
#define STEP16_H
class TDrawDocument;
class TDrawApp : public TApplication, public TOcModule {
public:
TDrawApp();
protected:
TMDIClient* Client;
// Override methods of TApplication
void InitInstance();
void InitMainWindow();
// Event handlers
void EvNewView(TView& view);
void EvCloseView(TView& view);
void EvDropFiles(TDropInfo dropInfo);
void CmAbout();
private:
// Automation entry points
void SetShow(bool visible);
bool GetShow();
TDrawDocument* AddDoc();
TDrawDocument* OpenDoc(const char far* name = 0);
const char far* GetPath();
// method of TModule ==> const char far* GetName()
DECLARE_RESPONSE_TABLE(TDrawApp);
DECLARE_AUTOAGGREGATE(TDrawApp)
AUTOPROP (Visible, GetShow,SetShow, TAutoBool, )
AUTOFUNC0 (NewDoc, OpenDoc, TAutoObject<TDrawDocument>, )
AUTOFUNC1 (OpenDoc, OpenDoc, TAutoObject<TDrawDocument>,TAutoString,)
AUTOPROPRO(AppName, GetName, TAutoString, )
AUTOPROPRO(FullName,GetPath, TAutoString, )
};
#endif