class_docstr: I/O abstraction for rendering to Windows consoles.
  (cmd.exe and similar.)
class_docstr_tok: ["I\/O","abstraction","for","rendering","to","Windows","consoles",".","(","cmd.exe","and","similar",".",")"]
docstr: Call win32 API to refresh the whole Window.
  
  This is sometimes necessary when the application paints background
  for completion menus. When the menu disappears, it leaves traces due
  to a bug in the Windows Console. Sending a repaint request solves it.
docstr_tok: ["Call","win32","API","to","refresh","the","whole","Window",".","This","is","sometimes","necessary","when","the","application","paints","background","for","completion","menus",".","When","the","menu","disappears",",","it","leaves","traces","due","to","a","bug","in","the","Windows","Console",".","Sending","a","repaint","request","solves","it","."]
code: def win32_refresh_window(cls):
      """
      Call win32 API to refresh the whole Window.
  
      This is sometimes necessary when the application paints background
      for completion menus. When the menu disappears, it leaves traces due
      to a bug in the Windows Console. Sending a repaint request solves it.
      """
      # Get console handle
      handle = HANDLE(windll.kernel32.GetConsoleWindow())
  
      RDW_INVALIDATE = 0x0001
      windll.user32.RedrawWindow(
          handle, None, None, c_uint(RDW_INVALIDATE)
      )
  
imports: from __future__ import unicode_literals
  from ctypes import windll, byref, ArgumentError, c_char, c_long, c_ulong, c_uint, pointer
  from ctypes.wintypes import DWORD, HANDLE
  from prompt_toolkit.renderer import Output
  from prompt_toolkit.styles import ANSI_COLOR_NAMES
  from prompt_toolkit.win32_types import CONSOLE_SCREEN_BUFFER_INFO, STD_OUTPUT_HANDLE, STD_INPUT_HANDLE, COORD, SMALL_RECT
  import os
  import six
label_desc: Use image node_id 33 for calling the Win32Output obj's underlying member method code with example usage: obj.win32_refresh_window(cls) without return types