Jump to content
  • Advertisement


This topic is now archived and is closed to further replies.


Help needed on MFC, DirectShow issues

This topic is 5280 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hi all, Plz can any1 let me know the solution to any of these isssues 1. ChildFrameWnd (having 3 CView-derived classes) in a MDI-based application flickers. How do I avoid it? .. yes, I have tried returning TRUE in OnEraseBkgnd function 2. I have a avi player with a slider control (seek bar) which does not get updated as the avi file plays i.e; say a movie file is played, the seek bar does not traverse in time. I have the following code embedded void PlayerView::OnTimer(UINT nIDEvent) { PlayerDoc* pDoc = GetDocument(); LONGLONG lPosition = 0; LONGLONG lDuration = 0; pDoc->m_pMediaSeeking->GetDuration(&lDuration); pDoc->m_pMediaSeeking->GetCurrentPosition(&lPosition); pDoc->m_nVideoPosition = (int)(lPosition * 1000/ lDuration); //data is transferred between m_sliderVideo slider control and //m_nVideoPosition data member using DDX_Slider and //DDX_Control CFormView::OnTimer(nIDEvent); } where am I going wrong? thanx a ton

Share this post

Link to post
Share on other sites

  • Advertisement

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!