🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.multimedia
Article #407

Re: How to avoid 'flickering' when playing a new video-file after an old one?

#407
From: Remy Lebeau (TeamB)
Date: Mon, 19 Jul 2004 16:54
20 lines
1512 bytes
<M_R> wrote in message news:vnjnf0hp06sn262ugb3783ng7kl1sgreu4@4ax.com...

>    bool window_is_locked=LockWindowUpdate(MediaPlayer->Handle);

Use the Panel's Handle, not the MediaPlayer's:

    bool window_is_locked = LockWindowUpdate(Panel1->Handle);
    //...
    if( window_is_locked )
        LockWindowUpdate(NULL);

Alternatively, use WM_SETREDRAW as I suggested earlier:

    Panel1->Perform(WM_SETREDRAW, FALSE, 0);
    //...
    Panel1->Perform(WM_SETREDRAW, TRUE, 0);


Gambit
Technical Details
Message-ID: <40fbfca0$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <ckmkf05u4846s2o6vfhp05i04o6id8c7kq@4ax.com> <40fade9f@newsgroups.borland.com> <vnjnf0hp06sn262ugb3783ng7kl1sgreu4@4ax.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 10d0fc,22953efa7c53cb7b
X-Google-Attributes: gid10d0fc,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: "Remy Lebeau \(TeamB\)" <gambit47.no.spam@no.spam.yahoo.com>
Newsgroups: borland.public.cppbuilder.multimedia
References: <ckmkf05u4846s2o6vfhp05i04o6id8c7kq@4ax.com> <40fade9f@newsgroups.borland.com> <vnjnf0hp06sn262ugb3783ng7kl1sgreu4@4ax.com>
Subject: Re: How to avoid 'flickering' when playing a new video-file after an old one?
Date: Mon, 19 Jul 2004 09:54:45 -0700
Lines: 22
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1409
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1409
NNTP-Posting-Host: 68.69.17.41
Message-ID: <40fbfca0$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1090256032 68.69.17.41 (19 Jul 2004 09:53:52 -0700)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail