DECLARE ; INTEGER PostMessage IN WIN32API ; INTEGER hWnd, ; && Handle to the destination window INTEGER wMsg, ; && Message to be sent, see note below INTEGER wParam, ; && Not used with WM_PAINT INTEGER lParam && Not used with WM_PAINT PostMessage( toTree.hWnd, WM_PAINT )However, I don't know the value of WM_PAINT. There must be a translation of WM_messages somewhere. Any ideas?