/[winpt]/trunk/Src/wptListView.cpp
ViewVC logotype

Diff of /trunk/Src/wptListView.cpp

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 174 by twoaday, Thu Feb 2 08:20:50 2006 UTC revision 181 by twoaday, Tue Mar 14 11:01:22 2006 UTC
# Line 410  listview_setview (listview_ctrl_t ctx, D Line 410  listview_setview (listview_ctrl_t ctx, D
410    
411    
412  void  void
413  listview_set_image_list (listview_ctrl_t ctx, HICON *ico, DWORD nicons)  listview_set_image_list (listview_ctrl_t ctx, int cx, int cy,
414                             HICON *ico, DWORD nicons)
415  {  {
416      HIMAGELIST hil;      HIMAGELIST hil;
417      DWORD i;      DWORD i;
418    
419      hil = ImageList_Create (16, 16, ILC_COLOR8|ILC_MASK, nicons, 1);      if (cx == 0 || cy == 0)
420            cx = cy = 16;
421    
422        hil = ImageList_Create (cx, cy, ILC_COLOR8|ILC_MASK, nicons, 1);
423      ImageList_SetBkColor (hil, CLR_NONE);      ImageList_SetBkColor (hil, CLR_NONE);
424      for (i=0; i < nicons; i++)      for (i=0; i < nicons; i++)
425          ImageList_AddIcon (hil, ico[i]);              ImageList_AddIcon (hil, ico[i]);    

Legend:
Removed from v.174  
changed lines
  Added in v.181

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26