0
0
mirror of https://github.com/vim/vim.git synced 2025-10-24 08:54:47 -04:00

updated for version 7.4.459

Problem:    Can't change the icon after building Vim.
Solution:   Load the icon from a file on startup. (Yasuhiro Matsumoto)
This commit is contained in:
Bram Moolenaar
2014-09-23 21:53:41 +02:00
parent cfc216e7b0
commit cddc91ccb4
5 changed files with 40 additions and 1 deletions

View File

@@ -1662,6 +1662,14 @@ gui_mch_init(void)
if (s_textArea == NULL)
return FAIL;
/* Try loading an icon from $RUNTIMEPATH/bitmaps/vim.ico. */
{
HANDLE hIcon = NULL;
if (mch_icon_load(&hIcon) == OK && hIcon != NULL)
SendMessage(s_hwnd, WM_SETICON, ICON_SMALL, hIcon);
}
#ifdef FEAT_MENU
s_menuBar = CreateMenu();
#endif