This event is generated after each image is loaded into the Thumbnail Control.
[Visual
Basic] thumbcontrolname_EndLoadFile(ByVal
PathName As String, ByVal FileName As String, ByVal ImageNumber As
Integer, ByVal MaxImage As Integer)
[Visual
C++] OnEndLoadFilethumbcontrolname(LPCTSTR
PathName, LPCTSTR FileName, short ImageNumber, short
MaxImage)
Parameters
Name | Explanation |
---|---|
PathName | The path and directory name of the image loaded into the Thumbnail Control |
FileName | The filename of the image loaded into the Thumbnail Control |
ImageNumber | The sequential number of the thumbnail image |
MaxImage | The total number of images to be loaded into the Thumbnail Control |
Explanation
The EndLoadFile event is generated after each image is loaded into the Thumbnail Control. Note: This event is NOT generated if a thumbnail file (ThumbnailFile property) is used to load the images. If an image is unable to be loaded, the ImageNumber parameter will be 0. To cancel processing in the thumbnail control, set the Cancel property to True within this event.
When multi-page image files are loaded, the page number is appended to the FileName parameter (If the page number is 0 then it is omitted).
Example: When page 2 of the file ABC.TIF is loaded into the Thumbnail Control, the FileName parameter will return the string "ABC.TIF 2"