i want to use HB_FUNC(RESIZEBMP) and ::oWnd:ReadImage() which both "produce" hBitmap
Question : do i need to "Destroy" hBitmap
if Yes, how under Fivewin
- Code: Select all Expand view
- aBitmaps := ::oWnd:ReadImage( ::cPath + cFile, { ::nIcoLarge*2, ::nIcoLarge*2 } )
iImage := aBitmaps[ 1 ]
iImage := RESIZEBMP( iImage, ::nIcoLarge, ::nIcoLarge, .T. )
iImage := MAX( 0, ILADD( ::oImageListBig:hImageList, iImage ) )
// after add to Imagelist what to do with iImage ?