Subj : WM_PAINT or TWindow::Paint To : borland.public.cpp.borlandcpp From : MarvinAvery Date : Mon Aug 08 2005 06:36 pm Hi. I am using BC5.02 and OWLNext. I have a window in which I am displaying lines of text with a fixed-pitch font. This window can be scrolled horizontally. To do this, I call: ScrollWindowEx (dx, 0, &rect, &rect, 0, 0, SW_INVALIDATE|SW_ERASE); UpdateWindow(); UpdateWindow() causes a WM_PAINT message to be generated. In my TMyWindow::Paint() routine, I pant a line as follows: dc.TextOut (x_pos, y_pos, line_of_text); Now, if I scroll 1 column to the left (dx = width of 1 character in screen units), Windows physically scrolls my window one column left and, because I use UpdateWindow(), Windows "marks" only the right-most column for painting. Thus, when calling dc.TextOut() even though I am writing the entire line, only the last character actually gets written (or painted). Now for my question....... Is there a way of telling or forcing Windows, for specific lines only, to actually paint the *entire* line? TIA Marvin Avery .