| 1484 | // Pass the window handle to the upstream filter |
| 1485 | |
| 1486 | void CBaseRenderer::SendNotifyWindow(IPin *pPin, HWND hwnd) |
| 1487 | { |
| 1488 | IMediaEventSink *pSink; |
| 1489 | |
| 1490 | // Does the pin support IMediaEventSink |
| 1491 | HRESULT hr = pPin->QueryInterface(IID_IMediaEventSink, (void **)&pSink); |
| 1492 | if (SUCCEEDED(hr)) |
| 1493 | { |
| 1494 | pSink->Notify(EC_NOTIFY_WINDOW, LONG_PTR(hwnd), 0); |
| 1495 | pSink->Release(); |
| 1496 | } |
| 1497 | NotifyEvent(EC_NOTIFY_WINDOW, LONG_PTR(hwnd), 0); |
| 1498 | } |
| 1499 | |
| 1500 | // Signal an EC_REPAINT to the filter graph. This can be used to have data |
| 1501 | // sent to us. For example when a video window is first displayed it may |
nothing calls this directly
no test coverage detected