Jump to content
  • Advertisement

Archived

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

Sammmy

Video losing focus

This topic is 5378 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

Im using DirectX 9, rendering a small avi into my parent window, sometimes it works fine and you can see the video, sometimes you can only hear the sound (you cant see the video) and nothing changes in the code, it just works randomly or it doesnt, im using this : pVW->put_Owner((OAHWND) m_hWnd); pVW->put_WindowStyle(WS_CHILD | WS_CLIPSIBLINGS | WS_CLIPCHILDREN); RECT grc; GetClientRect(m_hWnd, &grc); pVW->SetWindowPosition(0, 0, grc.right, grc.bottom); pVW->put_AutoShow(OATRUE); pVW->put_Visible(OATRUE); pVW->SetWindowForeground(OATRUE); pVW->HideCursor(1); pVW->put_WindowState(1); any ideas?

Share this post


Link to post
Share on other sites
Advertisement

  • Advertisement
×

Important Information

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

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!