Re: Quick Question!

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance

From: Jeff Partch (jeffp_at_mvps.org)
Date: 05/14/04


Date: Fri, 14 May 2004 12:07:34 -0500


"Joseph M. Newcomer" <newcomer@flounder.com> wrote in message
news:pbr9a017n1djv2et75s6l4mdam7db2sht6@4ax.com...
> As I pointed out, I've seen a lot of problems with this approach. There
seems to be no
> compelling argument in its favor, and the number of problems I've seen is
fairly large.

Not sure how compelling it is, but a window should be expected to render
its background in response to WM_ERASEBKGND. If a dialog renders a custom
background, then it needs to conform to this reasonable expectation. I'd go
so far as to say that a window that does not do this is broken by design.
Once people start exploring dialogs with say bitmap backgrounds, they then
start exploring transparent controls -- the only reliable way I've found to
achieve this is to capture the dialog background into a memory bitmap passed
in a memory dc with a WM_ERASEBKGND to its parent, and then BitBlt your
portion in response to your own WM_ERASEBKGND.

-- 
Jeff Partch [VC++ MVP]


Relevant Pages

  • Re: "Shared" procedure division code
    ... >>>The response could vary here, depending on your answer to the question. ... structures readily available to render its use unnecessary - then ... question is treated as an ALTER and should be structured out of existence. ... 'What are the suppositions and logic you employed in reaching this ...
    (comp.lang.cobol)
  • Re: Not just me
    ... What I'm saying is that ... you can have a reasonable expectation that they WILL respond, ... if that response is inappropriate. ... if there's a real issue (as there was with the mohammed cartoons) then I ...
    (soc.culture.jewish.moderated)
  • Re: Not just me
    ... What I'm saying is that ... you can have a reasonable expectation that they WILL respond, ... if that response is inappropriate. ... Sometimes there are larger issues than "not provoking." ...
    (soc.culture.jewish.moderated)
  • Re: YASID: Poul Andersons The Last of the Deliverers?
    ... mucked-about with in order to make it render properly through IE's ... HTTP request sent; waiting for response. ... site worth visiting. ...
    (rec.arts.sf.written)