I have a Win32 application.
I would like to display some text in various areas of my client window.
So, I have in WndProc case WM_PAINT. In it I have all the things related to drawing including TextOut, of course.
Somewhere in my WinMain I would have something set all those variables to what I need, then I would call InvalidateRect() to generate WM_PAINT message and draw "tol_imp->text_to_draw".
// start X coordinate
// start Y coordinate
// what to print
// how many characters of text_to_draw to display
So far so good.
But then if, immediately after InvalidateRect above, I proceed to change the text_to_draw and its companion variables to something else, hoping to have windows draw it in a different area of the window, the result is only the last thing gets drawn.
It's like after the first InvalidateRect call, it doesn't take its time to finish drawing out the text then current in my text_to_draw variable, but continues on to the next statement where I change text_to_draw to the next bit of text and draws that.
Any help on how I could draw differenct text strings in different parts of the window?
(Alert, just started windows-based programming. Have been writing main() applications up to this point).