user2711115
user2711115

Reputation: 457

win32 Textbox and AnimateWindow

I'm making a native win32 application and use AnimateWindow to fadein the window. It all works well except the couple textboxes I have in my window are not drawn until I do an InvalidateRect call after the fadein. From the MSDN doc it says the WM_PRINTCLIENT message must be handled for custom controls to draw correctly, but that it isnt needed for common controls. Why do TEXT controls not work correctly? And how do I implement WM_PRINTCLIENT for my TEXT controls? Here's what I tried already with no success in my WndProc function:

...
case WM_PRINTCLIENT:
SendMessage(hTextCtl, WM_PRINT, wParam, PRF_OWNED);
break;

Upvotes: 0

Views: 142

Answers (0)

Related Questions