I see this problem in follwing scnerio:
The activex control is created with Extent 0,0(so it is not visible in IE). Then the user clicks on a html button which has the following pseudo code:
Find the object; Object.display = “visibile”;
In my corresponding put_display what executes is something like this:
Rect rect = //New sized position e.g 80 x 120 CComPtr pOleClientSite; GetClientSite( &pOleClientSite ) ; CComQIPtr pOleInPlaceSite( pOleClientSite ); pOleInPlaceSite->OnPosRectChange( &rect ) );
After this routine executes. When the user tries to set the size with another button click which executes a pseudo code like this:
Find the object; Object.Width = 300; Object.Height = 200;
In SetExtent of my control IE tells me that the size is 80x120, not 300 by 200.
Any idea why this happens?