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
Post a Comment