L_ILN_DROPFILES
Sent when files are dropped onto an ImageList Control (for example from Explorer).
|
Parameter |
Description |
|
wParam |
idCtrl = (L_INT) LOWORD(wParam) identifier of control. |
|
|
wNotifyCode = HIWORD(wParam) notification code. |
|
lParam |
pszFilename = (L_CHAR *) lParam pointer to the file that was dropped. |
Comments
The parent window of the ImageList will get one L_ILN_DROPFILES notification for each file that is dropped onto the ImageList Control when the control has L_ILS_ACCEPTDROPFILES set.
See Also
|
Elements: |
|
|
Topics: |
Using
the ImageList Control |
Example
//NOTE this is not a complete sample, and is meant only to //show you a way in which this message can be used
L_INT ILN_DROPFILESExample(HWND hCtrl,WPARAM wParam,LPARAM lParam)
{
if(HIWORD(wParam) == L_ILN_DROPFILES)
{
if(lParam)
{
BITMAPHANDLE Bitmap;
LILITEM Item;
L_INT nResult;
THUMBOPTIONS to;
to.nWidth = 80;
to.nHeight = 80;
to.nBits = 24;
to.uCRFlags = 0;
to.bMaintainAspect = TRUE;
to.bForceSize = FALSE;
to.crBackColor = 0;
to.bLoadStamp = FALSE;
to.bResample = TRUE;
nResult = L_CreateThumbnailFromFile((L_TCHAR *)lParam,
&Bitmap,0, &to,
NULL, NULL, NULL, NULL);
if(nResult == SUCCESS)
{
Item.uStructSize = sizeof(LILITEM);
Item.pText = (L_TCHAR *)lParam;
Item.uMask = LILITEM_BITMAP | LILITEM_TEXT;
Item.pBitmap = &Bitmap;
L_ImgListInsert(hCtrl, &Item);
}
}
}
return SUCCESS;
}