Flickering when showing full screen web browser dialog
From: Rick (anonymous_at_discussions.microsoft.com)
Date: 07/22/04
- Next message: Andrew Mayo: "Re: The mystery of landscape printing"
- Previous message: Jay: "Re: HtmlView and redraw"
- Next in thread: Rick: "Flickering when showing full screen web browser dialog"
- Reply: Rick: "Flickering when showing full screen web browser dialog"
- Messages sorted by: [ date ] [ thread ]
Date: Thu, 22 Jul 2004 04:15:57 -0700
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
- Next message: Andrew Mayo: "Re: The mystery of landscape printing"
- Previous message: Jay: "Re: HtmlView and redraw"
- Next in thread: Rick: "Flickering when showing full screen web browser dialog"
- Reply: Rick: "Flickering when showing full screen web browser dialog"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|