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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user