Re: IVideoWindow 'blanking'

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



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


.



Relevant Pages

  • Re: How to override the Form.OnPaint method
    ... It will handle the Paint event, not override OnPaint. ... He really wants to override the non-client rendering of the window. ... client paint and it's best to just leave it alone. ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Difference between this.CreateGraphics() and Graphics.FromHdc(hDC);
    ... I've had a read through the GDI+ FAQ. ... FromHdc using the handle from GetWindowDC will return a graphics object ... based on the whole window including the non-client area. ... only used by the system unless you want to do clever stuff like override the ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: create deactivated form
    ... > One simple way would be to immediately set focus back after the second ... > So I'm looking for a way to immediately create a window that doesn't have ... > protected override CreateParams CreateParams ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Wnidows 2000 and PCI-Cardbus bridge resources
    ... I tried to override the card resources requirements down to 512K with ... Juca ... >> window and not how to place the memory window. ...
    (microsoft.public.development.device.drivers)
  • Re: jcl for cics sit assemble
    ... there are a lot of parms now so ... it is better to use a preset assembled table and then just override what ... send email to listserv@xxxxxxxxxxx with the message: GET IBM-MAIN INFO ... Search the archives at http://bama.ua.edu/archives/ibm-main.html ...
    (bit.listserv.ibm-main)