Flickering when showing full screen web browser dialog

From: Rick (anonymous_at_discussions.microsoft.com)
Date: 07/22/04


Date: Thu, 22 Jul 2004 06:36:30 -0700

I have found a solution for this:

Override OnEraseBkgnd. Return TRUE for when the browser is
being shown (this prevents the background from being
erased which causes the brief flicker). I have a flag to
detect this case. Otherwise return CDialog::OnEraseBkgnd
(pDC).

Rick
>-----Original Message-----
>Hi,
>
>I am developing an application that uses a full screen
>kiosk type user interface, and has the capability of
>launching a web browser based session (again in full
>screen mode).
>
>The problem is that when switching from the 'normal'
>interface to the browser interface, I am getting a
>noticeable flicker or white flash. Is there any way I can
>prevent this?
>
>For the browser interface, I have a CDialog derived class
>that wraps the ActiveX web browser control, so
>OnInitDialog looks a bit like this:
>
>// Resolution is 1024X768
>const int nMaxX = 1024;
>const int nMaxY = 768;
>
>// Create the main dialog window
>CRect objRect(0, 0, nMaxX, nMaxY);
>// IDD_BROWSER_DIALOG is a dialog resource specified to
be
>0 x 0 pixels so it is hidden initially, m_webBrowser is
an
>MFC generated ActiveX wrapper for the browser control
>m_webBrowser.Create(BROWSER_FORM_NAME, WS_VISIBLE,
>objRect, this, IDD_BROWSER_DIALOG, NULL, FALSE);
>
>// Navigate the main dialog window to the holding page
URL.
>m_webBrowser.Navigate(szURL, NULL, NULL, NULL, NULL);
>
>Then I trap a web broswer event OnDocumentComplete to
know
>when to actually show the web browser dialog, which looks
>like this:
>
>SetWindowPos(&CWnd::wndTopMost, 0, 0, nMaxX, nMaxY,
>SWP_SHOWWINDOW);
>
>Any help would most appreciated.
>
>Regards,
>Rick
>.
>



Relevant Pages

  • comp.lang.javascript FAQ - Quick Answers
    ... Internationalization and Multinationalization in javascript. ... How can I see in javascript if a web browser accepts cookies? ... This is the official _comp.lang.javascript_ FAQ. ...
    (comp.lang.javascript)
  • comp.lang.javascript FAQ - Quick Answers 2008-03-10
    ... Internationalization and Multinationalization in javascript. ... How can I see in javascript if a web browser accepts cookies? ... This is the official _comp.lang.javascript_ FAQ. ...
    (comp.lang.javascript)
  • comp.lang.javascript FAQ - Quick Answers 2008-07-14
    ... Internationalization and Multinationalization in javascript. ... How can I see in javascript if a web browser accepts cookies? ... This is the official _comp.lang.javascript_ FAQ. ...
    (comp.lang.javascript)
  • comp.lang.javascript FAQ - Quick Answers 2007-11-19
    ... Internationalization and Multinationalization in javascript. ... How can I see in javascript if a web browser accepts cookies? ... This is the official _comp.lang.javascript_ FAQ. ...
    (comp.lang.javascript)
  • comp.lang.javascript FAQ - Quick Answers 2008-03-17
    ... Internationalization and Multinationalization in javascript. ... How can I see in javascript if a web browser accepts cookies? ... This is the official _comp.lang.javascript_ FAQ. ...
    (comp.lang.javascript)