#include "BIThumbnail.h"
int GetLegalSelectionTypes()
Description
Get code of the legal selection types. If selection option is set to SO_ALLIMAGEFILES, the Thumbnail dialog displays just these type of images. In the menu Options/Selection… Show special image files is where these types will be shown.
Return values
Return code of selection options.
Possible return values:
SO_ALLIMAGEFILES Display all of image files
SO_TIFF_FILE Display tiff files
SO_PCX_FILE Display pcx files
SO_DCX_FILE Display dcx files
SO_GIF_FILE Display gif files
SO_BMP_FILE Display bmp files
SO_CLP_FILE Display clp files
SO_WMF_FILE Display wmf files
SO_EMF_FILE Display emf files
SO_FAX_FILE Display fax files
SO_TGA_FILE Display tga files
SO_JPEG_FILE Display jpeg files
SO_CALS_FILE Display cals files
SO_PNG_FILE Display png files
SO_PDF_FILE Display png files
For example if you want to decide if tiff is a legal selection file type, you can check the following:
if( GetLegalSelectionTypes() & SO_TIFF_FILE ){
// tiff is a legal type
}
Requirements
Header : Declared in BiThumbnail.h; include BiThumbnail.h
Library : Use BiThumbnail.lib
DLLs : BiThumbnail.dll