le but du jeux est d'afficher une page web dans une zone de dialog box
je pensais pour cela intégrer un controle activeX gérant le html
néanmoins, je ne trouve nulle part le fichier "msie.html" expliquant son utilisation
à force de tatonner, j'ai compris qq trucs
mais l'affichage ne se fait tjs pas
peut etre faut il appeler un create, je ne sais...
si vous pouviez m'aider sur le coup....
merci !

Nono.
voici mon code
/*atic bool bce=true;
if(bce)
{
//idée: création?
CRect r;
m_ieTxt.GetWindowRect(r);
m_ieTxt.Create("a",SW_SHOW,r, this, IDC_MSIECTRL1,NULL, FALSE,NULL);
}
bce=false;
*/
c_ie.MSInfoLoadFile("tmp.html");
c_ie.MSInfoUpdateView();
sachant que c_ie est un controle du type CBMsie et que cette classe a été créée par l'intégrateur de composant ActiveX de Visual
voici son header:
class CBMsie : public CWnd
{
protected:
DECLARE_DYNCREATE(CBMsie)
public:
CLSID const& GetClsid()
{
static CLSID const clsid
= {
0x25959bef, 0xe700, 0x11d2, { 0xa7, 0xaf, 0x0, 0xc0, 0x4f, 0x80, 0x62,
0x0 } };
return clsid;
}
virtual BOOL Create(LPCTSTR lpszClassName,
LPCTSTR lpszWindowName, DWORD dwStyle,
const RECT& rect,
CWnd* pParentWnd, UINT nID,
CCreateContext* pContext = NULL)
{ return CreateControl(GetClsid(), lpszWindowName, dwStyle, rect, pParentWnd, nID); }
BOOL Create(LPCTSTR lpszWindowName, DWORD dwStyle,
const RECT& rect, CWnd* pParentWnd, UINT nID,
CFile* pPersist = NULL, BOOL bStorage = FALSE,
BSTR bstrLicKey = NULL)
{ return CreateControl(GetClsid(), lpszWindowName, dwStyle, rect, pParentWnd, nID,
pPersist, bStorage, bstrLicKey); }
// Attributes
public:
long GetMSInfoView();
void SetMSInfoView(long);
// Operations
public:
void MSInfoRefresh(BOOL fForSave, long* pCancel);
BOOL MSInfoLoadFile(LPCTSTR szFileName);
void MSInfoSelectAll();
void MSInfoCopy();
void MSInfoUpdateView();
long MSInfoGetData(long dwMSInfoView, long* pBuffer, long dwLength);
void AboutBox();
};