Or alter things along this line . It isn't difficult to alter a
win-framework to one's own needs.
Remove the CS_HREDRAW and CS_VREDRAW styles from the window by overriding
the GetWndClassInfo() function. Add the following function to your
CComControl-derived class:
static CWndClassInfo& GetWndClassInfo()
{
static CWndClassInfo wc = {{ sizeof(WNDCLASSEX), 0, StartWindowProc,
0, 0, 0, 0, 0, (HBRUSH)(COLOR_WINDOW+1), 0, "MyControlClass", 0 },
NULL, NULL, IDC_ARROW, TRUE, 0, _T("")};
return wc;
}
================
On 04/01/2007, at 7:10 AM, Norman Palardy wrote:
You can make interfaces that do not flicker but using just standard
controls it's almost impossible because they do that in Windows itself
if you make 100% custom created controls you can make it not flicker but
that's a ton of work
You can however minimise flickering by being extremely careful about how
you manage your refreshes - eg: refresh individual controls only, don't
refresh the main window.
Put a listbox on a window, pin it to the top left bottom and right,
fill it with values and resize it
Should flicker about as bad as anything and you're not doing any of
the redrawing
So you can only control it to a degree
I have seen completely custom control implementations that do not
flicker at all on Windows under any circumstances but the amount of
work is quite enormous to replace all the standard controls with
double buffered custom ones.
People don't tend to perceive flicker when a control is being updated with
a new value as much as they perceive it when the control has been erased
but redrawn with the same value (Andy's assertion by observation, haven't
looked for academic research backing it up).
I'd agree if there's an erase / redraw that will be more likely to be
noticed
Up to a certain limit people will notice the flicker (It's about 24
fps if you use interleaved drawing and about 30 fps if you redraw the
entire picture)
=============================================
_________________________________________________________________
Fixing up the home? Live Search can help
http://imagine-windowslive.com/search/kits/default.aspx?kit=improve&locale=en-US&source=hmemailtaglinenov06&FORM=WLMTAG
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>
Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>