window stops repainting...
-
Hi everyone, I have a main window with a gradient background onto which client area I output text using DrawTextEx. The background of the rectangle of the drawtext function is set to transparent. I invalidate this rectangle everytime I change the text so that the new text will be visible on the gradient background. This works fine for a while and then suddenly windows seems to stop painting the window all together ....? The text still continiues to be outputed , but on a white rectangle background now. The window does not seem to repaint either. I am using straight WIN32 api and simple message handling. Anybody have any ideas ? This is driving up the walls... help will be much appreciated. Carpe Deum
-
Hi everyone, I have a main window with a gradient background onto which client area I output text using DrawTextEx. The background of the rectangle of the drawtext function is set to transparent. I invalidate this rectangle everytime I change the text so that the new text will be visible on the gradient background. This works fine for a while and then suddenly windows seems to stop painting the window all together ....? The text still continiues to be outputed , but on a white rectangle background now. The window does not seem to repaint either. I am using straight WIN32 api and simple message handling. Anybody have any ideas ? This is driving up the walls... help will be much appreciated. Carpe Deum
Perhaps you're not freeing resources (pens, brushes) you use in your painting code? That could lead to resource exhaustion. Try adding
VERIFY
s to your code to verify correct operation and see if they fail. /ravi My new year's resolution: 2048 x 1536 Home | Articles | Freeware | Music ravib@ravib.com