Subj : Re: WM_PAINT or TWindow::Paint To : borland.public.cpp.borlandcpp From : MarvinAvery Date : Wed Aug 10 2005 01:08 pm "Thomas Maeder [TeamB]" wrote in message news:m2pssmtj1c.fsf@madbox2.local... > "MarvinAvery" writes: > > The device context passed to the Paint() member function has a > clipping region consisting of the invalidated rectangles. > > Apart from that, I think that it is compatible to the window dc or the > client dc of the window. You could use one of these to write these > lines to avoid clipping. > That is what I ended up doing. I tried to "expand" the clipping (update) region using SelectClipRgn() inside my Paint() procedure but that always seemed to make it smaller -- it looked like it took the intersection of the current clip region with the specified region. I don't know why. I then tried creating a new DC via GetDC and writing to it (as it would not have a clip region). That worked! > [BTW: This thread would be more on topic over in the owl newsgroup; > didn't realize that when I first replied. It's probably too late for > going there now, but please remember in future threads.] This was a toss-up for me. I am using OWL but my questions were really Windows so I posted to this newsgroup. Thanks for your help. Marvin .