Hi,

I am trying to integrate the MapX OCX in an OLE document, but I do not =
succeed to display the OCX content when the OCX becomes inactive.
My OLE document is developped with MFC. The OnDraw method of The =
COleServerItem class give me
a pointer to a display context.=20

Here below the code of my OnDraw method

BOOL CMap2SrvrItem::OnDraw(CDC* pDC, CSize& rSize)
{
   =20
=20
 pDC->SetMapMode(MM_ANISOTROPIC);
 pDC->SetWindowExt(1000, 1000);
 pDC->SetWindowOrg(0,0);
=20
SendMessage((HWND)p_mapx->m_hWnd, WM_PAINT, (WPARAM)pDC->m_hDC, 0L);
return TRUE ;=20
}

All the suggestion are welcomed

Best Regards

Michel Van Asten
=20
Projections
Centre d'Entreprise d'Idelux
Marche-en-Famenne
Belgium



_______________________________________________________________________
List hosting provided by Directions Magazine | www.directionsmag.com |
To unsubscribe, send e-mail to [EMAIL PROTECTED] and
put "unsubscribe MapInfo-L" in the message body.

Reply via email to