You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

53 lines
1.1 KiB
C++

///////////////////////////////////////////////////////////////////////
//written by peter pu ( pyc_peterpu@hotmail.com )
//
//
//
#ifndef mozilla_type_plugin_header
#define mozilla_type_plugin_header
#include <windows.h>
#include "npapi.h"
#include "npruntime.h"
#include "GamePlayerCtl.h"
/************************************************************************/
/* DLL INTERFACE zum GAME */
/************************************************************************/
#include "test/test.h"
class CMPlugin
{
private:
NPWindow *m_Window;
NPBool m_IsPluginInitialized;
NPObject *m_pScriptableObject;
HWND m_hWnd;
public:
CMPlugin(NPP pNPInstance);
~CMPlugin();
NPBool InitPlugin(NPWindow* pNPWindow);
void ClosePlugin();
NPBool IsPluginInitialized() { return m_IsPluginInitialized; }
int16 handleEvent(void* event);
NPObject *GetScriptableObject();
CWnd *m_Wnd;
NPP m_pNPInstance;
CString m_Src; //your params
CString m_Params; //empty soweit
WNDPROC m_lpOldProc;
CGamePlayerCtrl *bec ;
};
#endif