Mercurial > vim
comparison src/gui_w32.c @ 6249:7816c24ff890 v7.4.459
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)
author | Bram Moolenaar <bram@vim.org> |
---|---|
date | Tue, 23 Sep 2014 21:53:41 +0200 |
parents | 2fd96725b063 |
children | 74c65620c985 |
comparison
equal
deleted
inserted
replaced
6248:e019abe9a3b7 | 6249:7816c24ff890 |
---|---|
1660 s_hinst, NULL); | 1660 s_hinst, NULL); |
1661 | 1661 |
1662 if (s_textArea == NULL) | 1662 if (s_textArea == NULL) |
1663 return FAIL; | 1663 return FAIL; |
1664 | 1664 |
1665 /* Try loading an icon from $RUNTIMEPATH/bitmaps/vim.ico. */ | |
1666 { | |
1667 HANDLE hIcon = NULL; | |
1668 | |
1669 if (mch_icon_load(&hIcon) == OK && hIcon != NULL) | |
1670 SendMessage(s_hwnd, WM_SETICON, ICON_SMALL, hIcon); | |
1671 } | |
1672 | |
1665 #ifdef FEAT_MENU | 1673 #ifdef FEAT_MENU |
1666 s_menuBar = CreateMenu(); | 1674 s_menuBar = CreateMenu(); |
1667 #endif | 1675 #endif |
1668 s_hdc = GetDC(s_textArea); | 1676 s_hdc = GetDC(s_textArea); |
1669 | 1677 |