Re: IVideoWindow 'blanking'
- From: "Brian Burgess" <bburgess66@xxxxxxxxxxx>
- Date: Mon, 6 Feb 2006 23:07:51 +0800
That was it! .. Many thanks.
Interestingly, I had already tried your suggestion of looking up the group
archives. I did find 3 other threads. One of these even mentioned
OnEraseBkgnd. But all three threads mentioned that the solutions did not
work for them.
MSDN even made a suggestion of CoCreating(CoCreateInstance) the VideoWindow
and manually adding it to the the FilterGraph .. this didn't work either.
Thankfully however your simple solution of overriding OnEraseBkgnd with an
empty handler worked.
thanks again.
-B
"The March Hare [MVP]" <phil@xxxxxxxxx> wrote in message
news:1gj15wryubzez.1r4jtnt6f8i63$.dlg@xxxxxxxxxxxxx
On Mon, 6 Feb 2006 22:06:12 +0800, Brian Burgess wrote:
At least this seems to be the case. Sporadically the video will flicker
once right after starting, then go blank. If I move the parent window
(a
dialog wnd for instance) then the video will display again.
Anyone ever run into this before?
Yes. Search the archives of the group on Google Groups.
One issue could be you haven't overridden WM_ERASEBKGND:
"To prevent the video window from flickering during repaints, override the
default handling for the WM_ERASEBKGND message and do not erase the
window.
(For MFC applications, override CWnd::OnEraseBkgnd with an empty
handler.)"
--
Please read this before replying:
1. Dshow & posting help: http://tmhare.mvps.org/help.htm
2. Trim & respond inline (please don't top post or snip everything)
3. Benefit others: follow up if you are helped or you found a solution
.
- Follow-Ups:
- Re: IVideoWindow 'blanking'
- From: The March Hare [MVP]
- Re: IVideoWindow 'blanking'
- References:
- IVideoWindow 'blanking'
- From: Brian Burgess
- Re: IVideoWindow 'blanking'
- From: The March Hare [MVP]
- IVideoWindow 'blanking'
- Prev by Date: Re: IWMWriter BUG ( Access Violation )
- Next by Date: Re: IWMWriter BUG ( Access Violation )
- Previous by thread: Re: IVideoWindow 'blanking'
- Next by thread: Re: IVideoWindow 'blanking'
- Index(es):
Relevant Pages
|