Skip to content

Instantly share code, notes, and snippets.

@secemp9
Created December 4, 2022 00:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save secemp9/763154f36c8fea2cfa3e941bf5273dc2 to your computer and use it in GitHub Desktop.
Save secemp9/763154f36c8fea2cfa3e941bf5273dc2 to your computer and use it in GitHub Desktop.
Preventing resizing on win10
import win32gui,win32api,win32con
title = "File Explorer" # modify this line...
hwnd = win32gui.FindWindow(None, title)
style = win32gui.GetWindowLong(hwnd, win32con.GWL_STYLE)
style &= ~(win32con.WS_THICKFRAME);
win32gui.SetWindowLong(hwnd, win32con.GWL_STYLE, style)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment