i want to set my window on the top:
SetWindowPos(hwnd, HWND_TOP, 0, 0, 0, 0, SWP_SHOWWINDOW | SWP_NOMOVE)
but, it fails:
NameError: global name ‘
HWND_TOP
‘ is not defined
is HWND_TOP
need define?
i can’t find HWND_TOP
value from help doc PyWin32.chm
Google... try google - python win32 HWND_TOP
. First result looks like the constant is defined in module win32con
. Please import it and retry.