Skip to content

Instantly share code, notes, and snippets.

@rakslice
Created June 6, 2018 11:53
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rakslice/f9ef03bd31c03f2a868d6d080708007f to your computer and use it in GitHub Desktop.
Save rakslice/f9ef03bd31c03f2a868d6d080708007f to your computer and use it in GitHub Desktop.
hide title bar in zserge/webview
$ git diff
diff --git a/webview.h b/webview.h
index 61f7146..5847ac8 100644
--- a/webview.h
+++ b/webview.h
@@ -1244,6 +1244,7 @@ WEBVIEW_API int webview_init(struct webview *w) {
return -1;
}
+ SetWindowLong(w->priv.hwnd, GWL_STYLE, WS_DLGFRAME);
SetWindowLongPtr(w->priv.hwnd, GWLP_USERDATA, (LONG_PTR)w);
DisplayHTMLPage(w);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment