/*===========================================================================
FILE: helloformapp.c
===========================================================================*/
/*===============================================================================
INCLUDES AND VARIABLE DEFINITIONS
=============================================================================== */
#include "AEE.h" // Standard AEE Declarations
#include "AEEShell.h" // AEE Shell Services
#include "AEEFont.h" // AEE Font Services
#include "AEEDisp.h" // AEE Display Services
#include "AEEStdLib.h" // AEE StdLib Services
#include "AEERootForm.h"
#include "AEEStaticWidget.h"
#include "AEEImageWidget.h"
#include "AEEImageStaticWidget.h"
#include "AEETitleWidget.h"
#include "AEEComUtil.h"
#include "bid/helloformapp.bid"
#include "bid\AEECLSID_ROOTFORM.bid"
#include "bid\AEECLSID_FORM.bid"
#include "bid\AEECLSID_STATICWIDGET.bid"
#ifndef RELEASEIF
#define RELEASEIF(p) ReleaseIf((IBase**)(void *)&p)
static void ReleaseIf(IBase **ppif) {
if (*ppif) {
IBASE_Release(*ppif);
*ppif = 0;
}
}
#endif
/*-------------------------------------------------------------------
Applet structure. All variables in here are reference via "me->"
-------------------------------------------------------------------*/
// create an applet structure that's passed around. All variables in
// here will be able to be referenced as static.
typedef struct _helloformapp {
IApplet ia;
IAppletVtbl iavt;
int nRefs;
IDisplay *pIDisplay; // give a standard way to access the Display interface