|This is retired content. This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This content may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist.|
Retrieves the current window owner.
HRESULT get_Owner( OAHWND * Owner );
Returns an HRESULTvalue.
The video window can play back within a document environment. To do this, the window must be made a child of another window (so that it is clipped and moved appropriately). This property allows the owner of the window to be set and retrieved. When the window is owned by another window, it simply calls the Microsoft Win32 SetParentfunction. An application calling this function will change the window styles to set the WS_CHILD bit on.
When the window is owned by another window, it will automatically forward certain sets of messages (in particular, mouse and keyboard messages). This allows an application to do simple hot-spot editing and other interactions.
This member function is meant to be called by external objects through the IVideoWindowinterface, and therefore locks the critical section to synchronize with the associated filter. Call the CBaseControlWindow::GetOwnerWindowmember function to retrieve this property if not calling from an external object.