Private Sub EraseLines(phWnd As Long) Dim ret As Long 'hWndはデスクトップウィンドウのHWND ' ret = SendMessage(phWnd, WM_PAINT, 0&, 0&) ret = ValidateRect(phWnd, Null) End Sub