|
|
|
date: Wed, 2 Apr 2008 22:19:44 +0800,
group: microsoft.public.platformsdk.com_ole
back
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
|
|