c - Refresh a region in window before drawing text -


i'm drawing text on window @ wm_paint message, there way can refresh window region before drawing new line of text old text @ same location erased?

you need call invalidaterect window berase parameter set true erase before wm_paint generated.

this required when window static text control, don't erase automatically when change value.

make sure window handling wm_erasebkgnd , window class doesn't have null background brush, mechanism used invalidaterect erasing.


Comments

Popular posts from this blog

ASP.NET/SQL find the element ID and update database -

jquery - appear modal windows bottom -

c++ - Compiling static TagLib 1.6.3 libraries for Windows -