Home > Back-end >  WIN32 development, now the number of output lines is known, how to check the next line output beyond
WIN32 development, now the number of output lines is known, how to check the next line output beyond

Time:10-06

The younger brother WIN32 development, person that used to do the.net, and is not proficient in GDI, seek counsel

CodePudding user response:

What is the output? TextOut?
Use a window height divided by your line spacing, can work out how much can display the entire line

CodePudding user response:

I want to ask the key point is how to refresh window and output again

CodePudding user response:

A code is best

CodePudding user response:

This not, depends on what exactly do you use the level of function

CodePudding user response:

TextOut!

CodePudding user response:

The first line of the output after a line, and then each newline output, when at the bottom of the output to a window, to refresh the screen, keep the first line of text, output the next line

CodePudding user response:

Trouble eldest brother, WIN32 it's not that easy

CodePudding user response:

When the window is full, with InvalidateRect refresh window, and then start over, according to the third parameter is set to TRUE, InvalidateRect drawing will erase the background when
BOOL InvalidateRect (
__in HWND HWND,
__in const the RECT * lpRect,
__in BOOL bErase
);
  • Related