Home > Software engineering >  Listctrl list shows slightly thumbnail images to update pictures before, can become the last one
Listctrl list shows slightly thumbnail images to update pictures before, can become the last one

Time:10-02

A.C reate (100100, ILC_COLOR32 | ILC_MASK, 8, 1);

ATL: : CImage img.
Bitmap CBitmap *=NULL;
Bitmap=new CBitmap ();
HRESULT ret=img. Load (fileName);//strBmpPath path name for the picture
//MessageBox (fileName);
HBITMAP HBITMAP=img. Detach ();

HANDLE hBB=CopyImage (hbitmap (HANDLE), IMAGE_BITMAP, 100100, LR_COPYRETURNORG).
Hbitmap=(hbitmap) hBB;

Bitmap - & gt; The Attach (hbitmap);

//hicon [0]=AfxGetApp () - & gt; LoadIcon (IDI_ICON1);
A.A dd (bitmap, RGB (0, 0, 0));
The delete bitmap.



Cstrings strTemp;
Char STR [20].
Char STRR [20].
_splitpath (fileName, NULL, NULL, STRR, STR);

StrTemp. The Format (_T (" % s % s "), STRR, STR);



M_ListCtrl. SetImageList (& amp; A, LVSIL_NORMAL);

//for (int n=0; N & lt; Nt. N++) {
M_ListCtrl. InsertItem (nt, strTemp, 0).
/* cstrings t;
T.F ormat (" % d ", nt);
MessageBox (t); */
Nt++;
//}
A. d. etach ();

CodePudding user response:

CodePudding user response:

How to update a save in front of the same
  • Related