comparison src/toolbar-msw.c @ 294:4b85ae5eabfb r21-0b45

Import from CVS: tag r21-0b45
author cvs
date Mon, 13 Aug 2007 10:38:01 +0200
parents e11d67e05968
children 70ad99077275
comparison
equal deleted inserted replaced
293:403535bfea94 294:4b85ae5eabfb
298 } 298 }
299 299
300 /* need to build an image list for the bitmaps */ 300 /* need to build an image list for the bitmaps */
301 if (!ilist && !(ilist = ImageList_Create 301 if (!ilist && !(ilist = ImageList_Create
302 ( bmwidth, bmheight, 302 ( bmwidth, bmheight,
303 ILC_COLOR24, nbuttons, nbuttons * 2 ))) 303 ILC_MASK | ILC_COLOR24,
304 nbuttons, nbuttons * 2 )))
304 { 305 {
305 xfree (button_tbl); 306 xfree (button_tbl);
306 signal_simple_error ("couldn't create image list", 307 signal_simple_error ("couldn't create image list",
307 instance); 308 instance);
308 } 309 }
309 310
311 /* make the mask actually do something */
312 ImageList_SetBkColor (ilist, CLR_NONE);
310 /* add a bitmap to the list */ 313 /* add a bitmap to the list */
311 if ((tbbutton->iBitmap = 314 if ((tbbutton->iBitmap =
312 ImageList_Add 315 ImageList_Add
313 (ilist, 316 (ilist,
314 bitmap ? bitmap 317 bitmap ? bitmap
315 : IMAGE_INSTANCE_MSWINDOWS_BITMAP (p), 318 : IMAGE_INSTANCE_MSWINDOWS_BITMAP (p),
316 mask ? mask 319 mask ? mask
317 : IMAGE_INSTANCE_MSWINDOWS_MASK (p))) < 0) 320 : IMAGE_INSTANCE_MSWINDOWS_MASK (p))) < 0)