Home > Software engineering >  Questions about the text output into the Windows
Questions about the text output into the Windows

Time:10-06

I text output in the same position in the window of the text will fold together have what way to empty redraw? I am using textout
As shown in figure

CodePudding user response:

Textout before, to a reproduction

CodePudding user response:

Draw in WM_PAIN, stick background first, then draw

If you want to be efficient, stick part of font bitmap first time, to write again

CodePudding user response:

"Is there any way to empty redraw?"
To output a string of long enough "null"

CodePudding user response:

Do a static text box made of transparent background or redraw the background of the font display area

CodePudding user response:

refer to the second floor zgl7903 response:
drawing in WM_PAIN, stick background first, then draw

If you want to be efficient, stick part of font bitmap first time, to write

According to this do something,

CodePudding user response:

There is no clear method, can only draw the background again

CodePudding user response:

Redraw the text part of crect, or all redrawn
  • Related