RE: [GD-Windows] Windows paints my window!
Brought to you by:
vexxed72
From: Tom F. <to...@mu...> - 2002-09-09 18:16:21
|
> I thought that setting the hbrBackground of the > WNDCLASS struct to NULL was enough to prevent this IIRC, you need to set it to a transparent brush, not just to NULL. But beware of other nasty things that happen when you neglect your = message pump. It might be an idea to call the message pump regularly during the loading process. You can also draw progress bars, etc at the same time = - keeps both Windows and the user from worrying. Tom Forsyth - purely hypothetical Muckyfoot bloke. This email is the product of your deranged imagination, and does not in any way imply existence of the author. > -----Original Message----- > From: Ignacio Casta=F1o [mailto:cas...@ya...] > Sent: 09 September 2002 18:10 > To: gam...@li... > Subject: Re: [GD-Windows] Windows paints my window! >=20 >=20 > Hi, > Are you returning TRUE to the WM_ERASEBKGND message? >=20 >=20 > Ignacio Casta=F1o > cas...@ya... >=20 >=20 > Javier Arevalo wrote: > > Hi! > > > > During long load times (not so long actually, but hey)=20 > Windows sometimes > > seems to decide that the game's window needs repainting and=20 > erasing. The > app > > is not responding to messages because it's busy loading=20 > stuff. I thought > > that setting the hbrBackground of the WNDCLASS struct to=20 > NULL was enough > to > > prevent this, but it still paints the window white. This=20 > only happens when > > the game runs in fullscreen mode, never in the windowed=20 > mode we use for > > development. Even funnier is that it only started happening=20 > a few days > ago, > > but we have been unable to find any changes we might have=20 > done to the > Window > > or DirectX handling code for the past _months_. > > > > Any ideas where to look at? Even the slightest trace of a=20 > pointer will be > > greatly appreciated. > > > > Thanks, > > Javier Arevalo > > Pyro Studios >=20 >=20 > _______________________________________________________________ > Copa del Mundo de la FIFA 2002 > El =FAnico lugar de Internet con v=EDdeos de los 64 partidos.=20 > =A1Ap=FAntante ya! en http://fifaworldcup.yahoo.com/fc/es/ >=20 >=20 > ------------------------------------------------------- > This sf.net email is sponsored by: OSDN - Tired of that same old > cell phone? Get a new here for FREE! > https://www.inphonic.com/r.asp?r=3Dsourceforge1&refcode1=3Dvs3390 > _______________________________________________ > Gamedevlists-windows mailing list > Gam...@li... > https://lists.sourceforge.net/lists/listinfo/gamedevlists-windows > Archives: > http://sourceforge.net/mailarchive/forum.php?forum_id=3D555 >=20 |