Ureader.com  
Microsoft software help and Community
   home   |   control panel login   |   archive   |  
 
platform
active.directory
adsi
adsi.iis-admin
base
com_ole
complus_mts
component_svcs
database
directx
gdi
graphics_mm
internet.client
internet.server
internet.server.isapi-dev
localization
mapi
messaging
msi
mslayerforunicode
multimedia
networking
networking.ipv6
sdk_install
security
shell
telephony.tapi_2
telephony.tapi_3
telephony.tsp
telephony.wte
tools
ui
ui_shell
win_base_svcs
win16
  
 
date: Wed, 2 Apr 2008 22:19:44 +0800,    group: microsoft.public.platformsdk.com_ole        back       


how to hide ole control embedded in window   
Hi.
I want to draw webs to directx texture.
So I embedded a CLSID_WebBrowser ole control into plain window.
And I use OleDraw to draw loaded web to directx texture.
But I don't have enought sikll in ole.
Are there any methode or doc about how to hide the ole in window,
but can draw it to texture.
Thanks.
date: Wed, 2 Apr 2008 22:19:44 +0800   author:   ZhaoBoqiang

Re: how to hide ole control embedded in window   
ZhaoBoqiang  wrote:
> I want to draw webs to directx texture.
> So I embedded a CLSID_WebBrowser ole control into plain window.
> And I use OleDraw to draw loaded web to directx texture.
> But I don't have enought sikll in ole.
> Are there any methode or doc about how to hide the ole in window,
> but can draw it to texture.

Just hide the window hosting the control, with ShowWindow(SW_HIDE)
-- 
With best wishes,
    Igor Tandetnik

With sufficient thrust, pigs fly just fine. However, this is not 
necessarily a good idea. It is hard to be sure where they are going to 
land, and it could be dangerous sitting under them as they fly 
overhead. -- RFC 1925
date: Wed, 2 Apr 2008 10:37:22 -0400   author:   Igor Tandetnik

Re: how to hide ole control embedded in window   
Thank you. But I want to only hide the control,
because I want to keep the hosting window to do other thing.
I also consider using another window to hosting the ole,
but I think it may has other problem to handle.

"Igor Tandetnik"  дÈëÏûÏ¢ 
news:ONuVR8MlIHA.4480@TK2MSFTNGP03.phx.gbl...
> ZhaoBoqiang  wrote:
>> I want to draw webs to directx texture.
>> So I embedded a CLSID_WebBrowser ole control into plain window.
>> And I use OleDraw to draw loaded web to directx texture.
>> But I don't have enought sikll in ole.
>> Are there any methode or doc about how to hide the ole in window,
>> but can draw it to texture.
>
> Just hide the window hosting the control, with ShowWindow(SW_HIDE)
> -- 
> With best wishes,
>    Igor Tandetnik
>
> With sufficient thrust, pigs fly just fine. However, this is not 
> necessarily a good idea. It is hard to be sure where they are going to 
> land, and it could be dangerous sitting under them as they fly 
> overhead. -- RFC 1925
>
>
date: Thu, 3 Apr 2008 09:16:07 +0800   author:   ZhaoBoqiang

Re: how to hide ole control embedded in window   
Thank you. I understand what you told me.

IOleWindow* pOleWindow = NULL;
pUserdata->pBrowser->QueryInterface(IID_IOleInPlaceObject, 
(void**)&pOleWindow);
if (pOleWindow)
{
	HWND hwndOle = NULL;
	pOleWindow->GetWindow(&hwndOle);
	ShowWindow(hwndOle, SW_HIDE);
	pOleWindow->Release();
}


"ZhaoBoqiang"  дÈëÏûÏ¢ 
news:826A3D1D-5A4E-435C-A73F-50ED48AFA64F@microsoft.com...
> Thank you. But I want to only hide the control,
> because I want to keep the hosting window to do other thing.
> I also consider using another window to hosting the ole,
> but I think it may has other problem to handle.
>
> "Igor Tandetnik"  дÈëÏûÏ¢ 
> news:ONuVR8MlIHA.4480@TK2MSFTNGP03.phx.gbl...
>> ZhaoBoqiang  wrote:
>>> I want to draw webs to directx texture.
>>> So I embedded a CLSID_WebBrowser ole control into plain window.
>>> And I use OleDraw to draw loaded web to directx texture.
>>> But I don't have enought sikll in ole.
>>> Are there any methode or doc about how to hide the ole in window,
>>> but can draw it to texture.
>>
>> Just hide the window hosting the control, with ShowWindow(SW_HIDE)
>> -- 
>> With best wishes,
>>    Igor Tandetnik
>>
>> With sufficient thrust, pigs fly just fine. However, this is not 
>> necessarily a good idea. It is hard to be sure where they are going to 
>> land, and it could be dangerous sitting under them as they fly 
>> overhead. -- RFC 1925
>>
>>
date: Thu, 3 Apr 2008 13:43:08 +0800   author:   ZhaoBoqiang

Re: how to hide ole control embedded in window   
I have a new problem about the IWebBrowser2,
I have make it work, but I have to make it fast.
I try to use IViewObject2::SetAdvise() to monitor the change of the view 
from IWebBrowser2,
but I only receive several times callback.I don't know whether I make 
mistake or this is the behavior of IWebBrowser2.
There's a tradeoff. I use IWebBrowser2::get_ReadyState() to poll the state, 
and update texture when READYSTATE_LOADED or READYSTATE_INTERACTIVE.
I don't know this is the right way to do it.


"ZhaoBoqiang"  дÈëÏûÏ¢ 
news:29DD2F0B-24DC-441B-968D-6F706AA679CA@microsoft.com...
> Hi.
> I want to draw webs to directx texture.
> So I embedded a CLSID_WebBrowser ole control into plain window.
> And I use OleDraw to draw loaded web to directx texture.
> But I don't have enought sikll in ole.
> Are there any methode or doc about how to hide the ole in window,
> but can draw it to texture.
> Thanks.
>
date: Tue, 8 Apr 2008 15:56:05 +0800   author:   ZhaoBoqiang

Google
 
Web ureader.com


    COPYRIGHT 2007, YARDI TECHNOLOGY LIMITED, ALL RIGHT RESERVE  |   contact us