struct s_image { dword *image; char path[4096]; }; s_image pics[100]; //pics = mem_Alloc( 100*sizeof(s_image) ); struct ImgCache { int pics_count; void Free(); int GetImage(); void Images(); } ImgCache1; void ImgCache::Free() { for ( ; pics_count>0; pics_count--) { if (pics[pics_count].image) img_destroy stdcall (pics[pics_count].image); pics[pics_count].path = NULL; } } int ImgCache::GetImage(dword i_path) { int i; for (i=0; i width1) w = width1; if (stroka==0) DrawBar(WB1.list.x, WB1.list.y, WB1.list.w-15, 5, bg_color); //закрашиваем первую строку stroka += h/10; if (top1+hWB1.list.y+WB1.list.h-10) return; //если ВСЁ изображение ушло ВЕРХ или ВНИЗ if (top1WB1.list.y+WB1.list.h-h-5) //если часть изображения снизу { h=WB1.list.y+WB1.list.h-top1-5; } if (h<=0) return; if (anchor) return; img_draw stdcall (pics[cur_pic].image, left1-5, top1, w, h,0,img_lines_first); DrawBar(left1+w - 5, top1, WB1.list.w-w, h, bg_color); IF (link) UnsafeDefineButton(left1 - 5, top1, w, h-1, blink + BT_HIDE, 0xB5BFC9); }