Re: Windows 98 rendering problem using CDHtmlDialog
From: Jim Howard (jnhtx_at_spamcop.net)
Date: 05/17/04
- Next message: Mike: "Ctrl+Tab problem (C#)"
- Previous message: Johan Rosengren: "Re: Windows 98 rendering problem using CDHtmlDialog"
- In reply to: Johan Rosengren: "Re: Windows 98 rendering problem using CDHtmlDialog"
- Next in thread: Johan Rosengren: "Re: Windows 98 rendering problem using CDHtmlDialog"
- Reply: Johan Rosengren: "Re: Windows 98 rendering problem using CDHtmlDialog"
- Messages sorted by: [ date ] [ thread ]
Date: Mon, 17 May 2004 15:23:07 -0500
"Johan Rosengren" <johan.rosengren@telia.com> wrote in message
news:%23oymiGxOEHA.1644@TK2MSFTNGP09.phx.gbl...
> Jim,
>
> The world has enough nuts as it is, so it would be nice to be able to help
> you. On the other hand, invalidating a window is just a single call to
> RedrawWindow, so I can't believe that this is your question, you are
rather
> asking when to redraw, I assume? Handlers such as OnDocumentComplete
and/or
> OnNavigateComplete would seem to be good starting points.
>
>
If I just invalidate the CDHtmlDialog object, nothing happens:
CDHtmlDialog *m_pMyDlg;
// I put this next line at the end of my OnDocumentComplete handler, some
images are just black "shadows"
m_pMyDlg->Invalidate(); // shadow images not redrawn
I've also tried variations of:
HWND h = m_pMyDlg->m_pControlSite->m_hWnd;
::InvalidateRect(h, NULL, 1);
BOOL b = ::PostMessage(h,WM_PAINT,0,0); //nothing :(
A good solution would be a way to invalidate an image element in
OnDocumentComplete but that doesn't seem possible.
If I reload the images with the IWebBroswer2 pointer via a DHTML call such
as SetInnerHtml then the problem occurs less frequently, but I still see
it.
The only sure fire fix so far is to fire a timer a second after
OnDocumentComplete and then load similar but different images on to the
page. This is super ugly.
Thanks for answering, I truly appreciate it.
Jim
- Next message: Mike: "Ctrl+Tab problem (C#)"
- Previous message: Johan Rosengren: "Re: Windows 98 rendering problem using CDHtmlDialog"
- In reply to: Johan Rosengren: "Re: Windows 98 rendering problem using CDHtmlDialog"
- Next in thread: Johan Rosengren: "Re: Windows 98 rendering problem using CDHtmlDialog"
- Reply: Johan Rosengren: "Re: Windows 98 rendering problem using CDHtmlDialog"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|
|