0
0
mirror of https://github.com/vim/vim.git synced 2025-10-12 06:44:06 -04:00

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)
This commit is contained in:
Bram Moolenaar
2019-11-17 22:54:10 +01:00
parent 37ff4cf870
commit 5f76334818
2 changed files with 8 additions and 0 deletions

View File

@@ -7859,6 +7859,12 @@ initialise_toolbar(void)
TOOLBAR_BUTTON_HEIGHT, TOOLBAR_BUTTON_HEIGHT,
sizeof(TBBUTTON) 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); s_toolbar_wndproc = SubclassWindow(s_toolbarhwnd, toolbar_wndproc);
gui_mch_show_toolbar(vim_strchr(p_go, GO_TOOLBAR) != NULL); gui_mch_show_toolbar(vim_strchr(p_go, GO_TOOLBAR) != NULL);

View File

@@ -741,6 +741,8 @@ static char *(features[]) =
static int included_patches[] = static int included_patches[] =
{ /* Add new patch number below this line */ { /* Add new patch number below this line */
/**/
2318,
/**/ /**/
2317, 2317,
/**/ /**/