Skip to content

Instantly share code, notes, and snippets.

@millsy
Last active December 18, 2015 02:39
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 millsy/5712435 to your computer and use it in GitHub Desktop.
Save millsy/5712435 to your computer and use it in GitHub Desktop.
Remove window frame
public void StyleWindow(IntPtr handle)
{
Diagnostic.DebugInfo("StyleWindow() called");
int lStyle = GetWindowLong(handle, GWL_STYLE);
lStyle &= ~(WS_CAPTION | WS_THICKFRAME | WS_MINIMIZE | WS_MAXIMIZE | WS_SYSMENU);
SetWindowLong(handle, GWL_STYLE, lStyle);
Diagnostic.DebugInfo("StyleWindow() ended");
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment