I have a function that uses DrawText(.....) to output a text display in my window. However, when I resize/minimize/move the window (in other words when WM_PAINT is called) the text is erased. How do I stop this? I tried using ValidateRect to stop that area from being erased but that doesn't work. Is there anyway to do it without having to call my function from within the WM_PAINT message? Thanks.