Re: Windows 98 rendering problem using CDHtmlDialog

From: Jim Howard (jnhtx_at_spamcop.net)
Date: 05/17/04


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



Relevant Pages

  • Re: Windows 98 rendering problem using CDHtmlDialog
    ... Handlers such as OnDocumentComplete ... If I just invalidate the CDHtmlDialog object, ... If I reload the images with the IWebBroswer2 pointer via a DHTML call such ... Jim ...
    (microsoft.public.vc.mfc)
  • Re: News of The World Confirms How Normal Paedophilia Is
    ... Jim might well phone the ISP if he wants to investigate the suspected ... In fact Jim would be committing an offence under DPA by passing the ... of the Toronto sex crimes unit received a series of 450 images of a 6- ... As a result of this case, police were led to the Dallas-Fort Worth ...
    (uk.legal)
  • Re: SOD Editor-Retrographer Volunteers
    ... >> Thanks to Jim Breen for reminding me that these newsgroups exist. ... multi-colored SODs that match KANJIDIC. ... least as they are used on Ice Mocha, PNG images. ... Jim created his animations from Halpern's static images if I'm not mistaken ...
    (sci.lang.japan)
  • Re: News of The World Confirms How Normal Paedophilia Is
    ... Jim might well phone the ISP if he wants to investigate the suspected ... In fact Jim would be committing an offence under DPA by passing the ... of the Toronto sex crimes unit received a series of 450 images of a 6- ... As a result of this case, police were led to the Dallas-Fort Worth ...
    (uk.legal)
  • Re: News of The World Confirms How Normal Paedophilia Is
    ... Jim might well phone the ISP if he wants to investigate the suspected ... In fact Jim would be committing an offence under DPA by passing the ... of the Toronto sex crimes unit received a series of 450 images of a 6- ... As a result of this case, police were led to the Dallas-Fort Worth ...
    (uk.legal)