i'll try, thanxs
wjp
Posts
-
multiple monitors and videowindow.owner -
multiple monitors and videowindow.ownerPlease can you help me some more, i'm new to directx and i think i'm gettinig it a litle bit. On a wxp machine i'm not using the extended monitor option. Both monitors show the same app and picturebox of course. It seems strange to me that any picture, shown in the picturebox shows up in both the screens, but when rendering a video by direct x it won't show on the second screen. You answered me (thanx) to do something with the "IVMRMonitorConfig interface" bth where in the code should i do what to get there?
-
multiple monitors and videowindow.ownerhello, can someone tell me how to to render a movie onto two monitors, i've a bit of code that reners the file on a picturebox. When i tell my computer to use two videocards and do the same thing on each screen, only the main screen shows the video / movie. the other shows a black hole. how can i solve that problem. FilgraphManager graphManager = new FilgraphManager(); graphManager.RenderFile(file); // Attach the view to a picture box on the form. try { videoWindow = (IVideoWindow)graphManager; videoWindow.Owner = (int)pictureBox1.Handle; videoWindow.WindowStyle = WS_CHILD | WS_CLIPCHILDREN; videoWindow.SetWindowPosition( pictureBox1.ClientRectangle.Left, pictureBox1.ClientRectangle.Top, pictureBox1.ClientRectangle.Width, pictureBox1.ClientRectangle.Height); } catch { // An error can occur if the file does not have a video // source (for example, an MP3 file.) // You can ignore this error and still allow playback to // continue (without any visualization). } mediapos = (IMediaPosition)graphManager; imex = (IMediaEventEx)graphManager; imex.SetNotifyWindow((int)this.Handle, WM_GRAPHNOTIFY, 0); // Start the playback (asynchronously). mc = (IMediaControl)graphManager; mc.Run(); willem-jan