Re: grey area behind menus and windows
From: Sam (sammyh_at_3-remove-rddim.com)
Date: Mon, 10 May 2004 11:51:56 -0400
Thank you, I got so caught up in menus, I forgot about onpaint.
So to put this to rest, I was able to get rid of the anoying grey areas by
1. disabling GraphicsSample's pause() in OnMenuStart and OnMenuComplete
2. Adding Paint EventHandler that calls FullRender()
Thank's for the help
"Rich [Microsoft Direct3D MVP]" <email@example.com> wrote in
> [Please do not mail me a copy of your followup]
> "Sam" <firstname.lastname@example.org> spake the secret code
> <OE1kw2ENEHA.1644@TK2MSFTNGP09.phx.gbl> thusly:
> >I'm still trying to figure out what to do with the grey area behind Modal
> >dialog boxes though... As you drag around a box, it leaves a grey
> >"invalidated" area behind, you could actually paint the whole viewport
> >by dragging around.
> You have to process paint events. You might want to compare to the
> C++ sample framework to see how it deals with it.
> "The Direct3D Graphics Pipeline"-- code samples, sample chapter, FAQ:
> Pilgrimage: Utah's annual demoparty