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) -> None:
      """
      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 annotations
  import sys
  import os
  from ctypes import ArgumentError, byref, c_char, c_long, c_uint, c_ulong, pointer
  from ctypes.wintypes import DWORD, HANDLE
  from typing import Callable, TextIO, TypeVar
  from prompt_toolkit.cursor_shapes import CursorShape
  from prompt_toolkit.data_structures import Size
  from prompt_toolkit.styles import ANSI_COLOR_NAMES, Attrs
  from prompt_toolkit.utils import get_cwidth
  from prompt_toolkit.win32_types import CONSOLE_SCREEN_BUFFER_INFO, COORD, SMALL_RECT, STD_INPUT_HANDLE, STD_OUTPUT_HANDLE
  from ..utils import SPHINX_AUTODOC_RUNNING
  from .base import Output
  from .color_depth import ColorDepth
label_desc: Use image node_id 35 for calling the Win32Output obj's underlying member method code with example usage: obj.win32_refresh_window(cls) without return types