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.

34 lines
608 B
C++

#ifndef mozilla_type_plugin_header
#define mozilla_type_plugin_header
#include <windows.h>
#include "npapi.h"
#include "npruntime.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;
WNDPROC m_lpOldProc;
NPP m_pNPInstance;
};
#endif