From: Steve P. <st...@ba...> - 2003-12-14 22:24:01
|
Hi, I tried this, it doesnt solve my particular problem at all, in fact it doesn't make the slightest difference. My window has a *lot* of widgets (it's a whole application made in The GUI Loft with several panes), so the flicker is probably very noticeable for me. Also, if you have a flatscreen monitor (LCD) the flicker is much less noticeable. Steve ----- Original Message ----- From: "Laurent ROCHER" <ro...@cl...> To: "Steve Pick" <st...@ba...> Cc: "Win32 GUI Hackers" <per...@li...> Sent: Sunday, December 14, 2003 6:36 PM Subject: Re: [perl-win32-gui-hackers] Success with flicker-free windows! > Hi, > > Garside Trevor say on win32::GUI Users list flicker problem when resize > window can be remove by set default class style to 0. > > In GUI.xs, RegisterClassEx : > wcx.style = 0; // CS_HREDRAW | CS_VREDRAW; // TODO (default class > style...) > > It's look better when resize main window. > I don't have samples whith lot of flicker problem. > So, don't know if it's sufficient. > > Laurent. > > > > > 4. Graphics objects no longer show up (DCs don't seem to support > > > > WM_PRINT). > > > > > > > > 5. Setting WS_CLIPCHILDREN results in massive flickering (the > > opposite of > > > > what it used to do) and causes no background to show. > > > > > > Well, I don't really understand a lot of what you said, and I don't have > > > any applications that flicker with the current GUI, so I guess I'd have > > > to say that if *anything* gets "broken" by this "enhancement", that it > > > should definitely be an "extra cost option", rather than the default. > > > > All my application widgets flickered when I resized the windows, > especially > > tree and listviews. This fix prevents the erase->redraw mentality of > > Windows, which is a stupid way of doing things in the 1st place. It would > be > > easy to add an option "-noflicker" to all windows so that you can > explicitly > > say "I want to use the non-flicker drawing routines". I will do this. > > > > |