Re: How to get HWND in MFC app. and set VMR9Windowless mode

Tech-Archive recommends: Fix windows errors by optimizing your registry



On Mon, 30 Oct 2006 17:33:01 -0800, embedix wrote:

I want to set VMR9 Windowless mode in MFC application.
While setting windowless, SetVideoClippingWindow api needs HWND argument.
But I don't know how to get HWND in MFC application.

pFilterVMRWindowlessControl->SetVideoClippingWindow(hWnd);

How can I solve it?

CWnd (and CWindow, IIRC) have a GetSafeHwnd() member function.

--
Please read this before replying:
1. Dshow & posting help: http://tmhare.mvps.org/help.htm
2. Trim & respond inline (please don't top post or snip everything)
3. Benefit others: follow up if you are helped or you found a solution
.