Mercurial > vim
comparison src/gui_w32.c @ 8100:ae50910ce279 v7.4.1344
commit https://github.com/vim/vim/commit/203219048fa007b5042d9b893fd647aef44722a0
Author: Bram Moolenaar <Bram@vim.org>
Date: Wed Feb 17 12:30:17 2016 +0100
patch 7.4.1344
Problem: Can't compile Win32 GUI with tiny features.
Solution: Add #ifdef. (Christian Brabandt)
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Wed, 17 Feb 2016 12:45:03 +0100 |
parents | 54cfe888c627 |
children | 441298d72f3c |
comparison
equal
deleted
inserted
replaced
8099:88ba1f943c0d | 8100:ae50910ce279 |
---|---|
1668 s_hinst, NULL); | 1668 s_hinst, NULL); |
1669 | 1669 |
1670 if (s_textArea == NULL) | 1670 if (s_textArea == NULL) |
1671 return FAIL; | 1671 return FAIL; |
1672 | 1672 |
1673 #ifdef FEAT_LIBCALL | |
1673 /* Try loading an icon from $RUNTIMEPATH/bitmaps/vim.ico. */ | 1674 /* Try loading an icon from $RUNTIMEPATH/bitmaps/vim.ico. */ |
1674 { | 1675 { |
1675 HANDLE hIcon = NULL; | 1676 HANDLE hIcon = NULL; |
1676 | 1677 |
1677 if (mch_icon_load(&hIcon) == OK && hIcon != NULL) | 1678 if (mch_icon_load(&hIcon) == OK && hIcon != NULL) |
1678 SendMessage(s_hwnd, WM_SETICON, ICON_SMALL, (LPARAM)hIcon); | 1679 SendMessage(s_hwnd, WM_SETICON, ICON_SMALL, (LPARAM)hIcon); |
1679 } | 1680 } |
1681 #endif | |
1680 | 1682 |
1681 #ifdef FEAT_MENU | 1683 #ifdef FEAT_MENU |
1682 s_menuBar = CreateMenu(); | 1684 s_menuBar = CreateMenu(); |
1683 #endif | 1685 #endif |
1684 s_hdc = GetDC(s_textArea); | 1686 s_hdc = GetDC(s_textArea); |