Hello everyone,
I`m working on a project (developing with dev-cpp) what measures voltage.
Values must update every 100 milliseconds. Thats my problem. When I update
the static controls like LTEXT and CTEXT, it flickers. Updating with
SetDialogItemText and SetWindowText produce the same result. If I double
buffer the static control, create a memory bitmap and a DC, and do a TextOut
inside the control, and BitBlt it, it works fine, doesn`t flicker. My
problem is, I didn`t found any solution to use SetDialogItemText correctly.
I don`t think double buffer and TextOut is the best way to avoid flicker on
static controls, because in this case the control is unneeded, but I would
like to use some design stuff which static controls has, and don`t want to
rewrite it.
Any ideas?
Ps.: Sorry for my english.
|