Created
June 6, 2018 11:53
-
-
Save rakslice/f9ef03bd31c03f2a868d6d080708007f to your computer and use it in GitHub Desktop.
hide title bar in zserge/webview
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ 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