I am trying to draw something on a live video. The best way to do that in my opinion is to handle the WM_PIANT event.
My purpose is to make the player draw first and after that the application. That way I will be able to draw on the video. It means that I want to be notified each time before we need to paint a new frame on the window and then handle the event.
I use DirectshowNet so I am programming in C# (I have all the interfaces the c++'s API has). I understand that the graph manager forward certain window messages to the Video Renderer such as the WM_PAINT.
How can I cause the player to draw a frame before the application and not after?