I've intercepted the WM_PAINT message for my edit control, and I am drawing my own text in. After drawing, I validate and return 0. However, when I click on the control, it erases everything I've done. Using Spy++ I can see that there are no paint or erase background messages being sent. How is it possible then for drawing to occur that I do not know about?
Code:case WM_PAINT: { HDC hdc=GetDC(hwnd); TextOut(hdc,0,0,"text",4); ReleaseDC(hwnd,hdc); ValidateRect(hwnd,NULL); } return 0;