comparison src/os_mswin.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 59cd2b16f718
children 4eba2bdb26f2
comparison
equal deleted inserted replaced
6248:e019abe9a3b7 6249:7816c24ff890
926 926
927 return 0; 927 return 0;
928 } 928 }
929 # endif 929 # endif
930 930
931 /*
932 * Passed to do_in_runtimepath() to load a vim.ico file.
933 */
934 static void
935 mch_icon_load_cb(char_u *fname, void *cookie)
936 {
937 HANDLE *h = (HANDLE *)cookie;
938
939 *h = LoadImage(NULL,
940 fname,
941 IMAGE_ICON,
942 64,
943 64,
944 LR_LOADFROMFILE | LR_LOADMAP3DCOLORS);
945 }
946
947 /*
948 * Try loading an icon file from 'runtimepath'.
949 */
950 int
951 mch_icon_load(iconp)
952 HANDLE *iconp;
953 {
954 return do_in_runtimepath((char_u *)"bitmaps/vim.ico",
955 FALSE, mch_icon_load_cb, iconp);
956 }
957
931 int 958 int
932 mch_libcall( 959 mch_libcall(
933 char_u *libname, 960 char_u *libname,
934 char_u *funcname, 961 char_u *funcname,
935 char_u *argstring, /* NULL when using a argint */ 962 char_u *argstring, /* NULL when using a argint */