home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World Komputer 1999 January
/
pcwk_01_1999.iso
/
Wtestowe
/
Vistdstd
/
Install
/
Data.Z
/
VGenericMFC.H
< prev
next >
Wrap
C/C++ Source or Header
|
1997-07-07
|
1KB
|
47 lines
//*****************************************************************************
// VGENERICMFC.CPP - Generated by the "MFC VAddon VSL Wizard."
// Copyright (C) 1997 Visio Corporation. All rights reserved.
// See the comments in VAO_ALL.CPP if the compiler complains that it can't
// find "vaddon.h" or "visiwrap.h" -- make sure "vao_inc" is in your include
// settings.
#include "vaddon.h" // parent class, VAddon
#include "visiwrap.h" // For driving Visio Automation via wrapper classes
// & the definition of CVisioApplication
#define ATTS (VAO_AOATTS_ISACTION | VAO_AOATTS_HASABOUT | VAO_AOATTS_HASHELP | VAO_AOATTS_WAITCRSR)
class VGenericMFC : public VAddon {
public:
// Constructor and destructor:
VGenericMFC(LPCTSTR pName);
virtual ~VGenericMFC();
// VAddon Overrides:
virtual VAORC Run(LPVAOV2LSTRUCT pV2L);
virtual VAORC IsEnabled(LPVAOV2LSTRUCT pV2L);
virtual VAORC About(LPVAOV2LSTRUCT pV2L);
virtual VAORC Help(LPVAOV2LSTRUCT pV2L);
virtual VAORC Load(WORD wVersion, LPVOID p);
virtual VAORC Unload(WORD wParam, LPVOID p);
virtual VAORC KillSession(LPVAOV2LSTRUCT pV2L);
virtual HINSTANCE GetInstance(long nFlags= 0L);
// VGenericMFC convenience methods:
virtual HRESULT GetApp(CVisioApplication &app);
private:
CVisioApplication m_app;
};
extern VGenericMFC g_vGenericMFCAddon;