Re: How to get IVideoWindow's HWND?

Tech-Archive recommends: Speed Up your PC by fixing your registry



Hi,
to get the video window handle do this:

- get the VideoRender input pin and querry for IOverlay interface
pInPin->QueryInterface(IID_IOverlay,(void**)&pOver);
-then use
pOver->GetWindowHandle(&m_hWnd);

enze, www.mpegcode.com


"Augie at NHN" <AugieatNHN@xxxxxxxxxxxxxxxxxxxxxxxxx> schrieb im Newsbeitrag
news:23C2690D-2DDF-455A-86DF-A39F99C1B0CA@xxxxxxxxxxxxxxxx
> I want to create a button in the middle of the video screen.
> To put the button, I need to get the HWND of Video Renderer window because
> the button needs parent window's handle.
> I checked methods in IVideoWindow but I cannot see any method to get the
> HWND value.
> Is there any way to get the HWND?
> And, can I create a button on the video window if I get the window handle?
>


.


Quantcast