#import "C:\windows\system32\Macromed\Flash\Flash10e.ocx"
using namespace ShockwaveFlashObjects;
// Global Variables:
HINSTANCE
hInst; //
current instance
TCHAR
szTitle[MAX_LOADSTRING]; //
The title bar text
TCHAR
szWindowClass[MAX_LOADSTRING]; //
The title bar text
// Foward declarations of functions included in this code
module:
ATOM MyRegisterClass(HINSTANCE
hInstance);
BOOL InitInstance(HINSTANCE,
int);
LRESULT CALLBACK WndProc(HWND, UINT, WPARAM,
LPARAM);
LRESULT CALLBACK About(HWND, UINT, WPARAM,
LPARAM);
int APIENTRY WinMain(HINSTANCE hInstance,
HINSTANCE hPrevInstance,
LPSTR
lpCmdLine,
int
nCmdShow)
{ CoInitialize(NULL);
AtlAxWinInit(); MSG msg; HACCEL hAccelTable;
// Main message loop: while (GetMessage(&msg, NULL, 0,
0)) { if
(!TranslateAccelerator(msg.hwnd, hAccelTable,
&msg)) { TranslateMessage(&msg); DispatchMessage(&msg); } } CoInitialize(NULL); return msg.wParam;
}
//
// FUNCTION: MyRegisterClass()
//
// PURPOSE: Registers the window class.
//
// COMMENTS:
//
// This
function and its usage is only necessary if you want this
code
// to be
compatible with Win32 systems prior to the 'RegisterClassEx'
// function
that was added to Windows 95. It is important to call this
function
// so that
the application will get 'well formed' small icons associated
// with
it.
//
ATOM MyRegisterClass(HINSTANCE hInstance)
{ WNDCLASSEX wcex;
//
// FUNCTION:
InitInstance(HANDLE, int)
//
// PURPOSE: Saves instance
handle and creates main window
//
// COMMENTS:
//
//
In this function, we save the instance handle in a global variable
and
//
create and display the main program window.
//
BOOL InitInstance(HINSTANCE hInstance, int nCmdShow)
{ HWND hWnd;
hInst = hInstance; // Store
instance handle in our global variable