Page 1 of 1

DirectShow integration within EdgeLib

PostPosted: Dec 18, 2007 @ 11:13am
by anxer
Dear Edge,

In our application we need to integrate DirectShow specific code in order to playback some video using Windows Media Player.

I have managed to compile and link a sample that is provided from Microsoft inside EdgeLib (the window handle Getcommand is perfect by the way) but I cannot solve the following problem.

How can I "forward" the WM_GRAPHNOTIFY: event which is sent to the WindowProc inside EdgeLib?

FYI the sample code I use is given here http://msdn2.microsoft.com/en-us/library/aa451352.aspx

What i have in mind is from an EdgeLib menu to play a video (remote/local) through DirectShow to play it full screen and when the user presses the video or a specific box to close it and return to EdgeLib menu.

Of course if you think that it is possible to see video (not full screen) and have EdgeLib menu visible this could be perfect (I assume with no autoFlip)

Looking forward for your reply

Regards

PostPosted: Dec 18, 2007 @ 12:42pm
by edge
Hi Anxer,

You can use the SendMessage API to forward window messages to another window (using the window handle).

If you would like to receive custom messages sent to your own window, you can create the OnNativeEvent function inside your framework: http://www.edgelib.com/index.php?node=1 ... ativeevent

PostPosted: Dec 18, 2007 @ 1:35pm
by anxer
Cool i will give a try and inform you about the progress. You have figured everything :-)