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.

110 lines
3.3 KiB
C++

#if !defined(AFX_GAMEPLAYERCTL_H__E5FE7835_1950_4193_A1E6_FF18F1D05888__INCLUDED_)
#define AFX_GAMEPLAYERCTL_H__E5FE7835_1950_4193_A1E6_FF18F1D05888__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#include <Afx.h>
/************************************************************************/
/* DLL INTERFACE zum GAME */
/************************************************************************/
#include "test/test.h"
// GamePlayerCtl.h : Declaration of the CGamePlayerCtrl ActiveX Control class.
/////////////////////////////////////////////////////////////////////////////
// CGamePlayerCtrl : See GamePlayerCtl.cpp for implementation.
#include "npapi.h"
#include "npupp.h"
class CGamePlayerCtrl : public COleControl
{
DECLARE_DYNCREATE(CGamePlayerCtrl)
// Constructor
public:
CGamePlayerCtrl();
//mozilla functions to support scripting
bool MozRemoveProperty (NPIdentifier name);
bool MozGetProperty (NPIdentifier name, NPVariant *result);
bool MozHasProperty (NPIdentifier name);
bool MozSetProperty (NPIdentifier name, const NPVariant *value);
bool MozInvoke (NPIdentifier name, const NPVariant *args,uint32_t argCount, NPVariant *result);
bool MozHasMethod (NPIdentifier name );
void WindowResize (CRect &rect);
public:
//attributes
CString m_Src;
CString m_CurrentUrl;
CString m_ServerName; // Webserver / DOmain, wenn Servernam == "" -> filesystem
CString m_Path; // Pfad zur webseite
CString m_PageName; // Name der Html seite
CString m_Params;
void SplitUrl();
BOOL DownLoadDLL();
HINSTANCE m_DllModul; // Game Modul
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CGamePlayerCtrl)
public:
virtual void OnDraw(CDC* pdc, const CRect& rcBounds, const CRect& rcInvalid);
virtual void DoPropExchange(CPropExchange* pPX);
virtual void OnResetState();
protected:
virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
//}}AFX_VIRTUAL
// Implementation
protected:
~CGamePlayerCtrl();
DECLARE_OLECREATE_EX(CGamePlayerCtrl) // Class factory and guid
DECLARE_OLETYPELIB(CGamePlayerCtrl) // GetTypeInfo
DECLARE_PROPPAGEIDS(CGamePlayerCtrl) // Property page IDs
DECLARE_OLECTLTYPE(CGamePlayerCtrl) // Type name and misc status
// Message maps
//{{AFX_MSG(CGamePlayerCtrl)
afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
// Dispatch maps
//{{AFX_DISPATCH(CGamePlayerCtrl)
// NOTE - ClassWizard will add and remove member functions here.
// DO NOT EDIT what you see in these blocks of generated code !
//}}AFX_DISPATCH
DECLARE_DISPATCH_MAP()
afx_msg void AboutBox();
// Event maps
//{{AFX_EVENT(CGamePlayerCtrl)
// NOTE - ClassWizard will add and remove member functions here.
// DO NOT EDIT what you see in these blocks of generated code !
//}}AFX_EVENT
DECLARE_EVENT_MAP()
// Dispatch and event IDs
public:
enum {
//{{AFX_DISP_ID(CGamePlayerCtrl)
// NOTE: ClassWizard will add and remove enumeration elements here.
// DO NOT EDIT what you see in these blocks of generated code !
//}}AFX_DISP_ID
};
};
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_GAMEPLAYERCTL_H__E5FE7835_1950_4193_A1E6_FF18F1D05888__INCLUDED)