patch 8.1.2318: MS-Windows GUI: main background shows in toolbar
Problem: MS-Windows GUI: main background shows in toolbar.
Solution: Remove transparency from the toolbar. (Simon Sadler)
diff --git a/src/gui_w32.c b/src/gui_w32.c
index 3dbbc5e..cdde3c2 100644
--- a/src/gui_w32.c
+++ b/src/gui_w32.c
@@ -7859,6 +7859,12 @@
TOOLBAR_BUTTON_HEIGHT,
sizeof(TBBUTTON)
);
+
+ // Remove transparency from the toolbar to prevent the main window
+ // background colour showing through
+ SendMessage(s_toolbarhwnd, TB_SETSTYLE, 0,
+ SendMessage(s_toolbarhwnd, TB_GETSTYLE, 0, 0) & ~TBSTYLE_TRANSPARENT);
+
s_toolbar_wndproc = SubclassWindow(s_toolbarhwnd, toolbar_wndproc);
gui_mch_show_toolbar(vim_strchr(p_go, GO_TOOLBAR) != NULL);