"Sheri Steeves" <[EMAIL PROTECTED]> writes: > @@ -267,6 +269,9 @@ > | (wParam & 0x0000000f); > style = wndPtr->dwStyle & 0x0000000f; > PAINT_BUTTON( wndPtr, style, ODA_DRAWENTIRE ); > + /* Redraw flag is set*/ > + if (lParam) > + SendMessageA(GetParent(hWnd), WM_PAINT, GetDC(hWnd), 0); > break; You are leaking a DC here. I'd suggest doing something like RedrawWindow(RDW_INVALIDATE|RDW_UPDATENOW) instead, and also getting rid of the PAINT_BUTTON above. -- Alexandre Julliard [EMAIL PROTECTED]