Available in LEADTOOLS Imaging Pro, Vector, Document, and Medical Imaging toolkits. |
GETDIRECTORYDLGPARAMS
typedef struct _GETDIRECTORYDLGPARAMS
{
L_UINT uStructSize;
L_TCHAR *pszDirectory;
L_INT nBuffSize;
L_TCHAR *pszFilter;
L_INT nFilterIndex;
L_TCHAR *pszTitle;
LPPOINT pptPosition;
LTCOMMDLGHELPCB pfnHelpCallback;
L_VOID *pHelpCallBackUserData;
} GETDIRECTORYDLGPARAMS, * LPGETDIRECTORYDLGPARAMS;
The GETDIRECTORYDLGPARAMS structure provides information used to initialize the dialog box created by the LDialogFile::DoModalGetDirectory function. After the user closes the dialog box, this structure is updated with information about the user's selections.
Member |
Description |
uStructSize |
Size of this structure, in bytes. Use the sizeof operator to calculate this value. |
pszDirectory |
Character string containing the directory name. Set this to initialize the dialog to open a particular directory. This will be filled with the user's directory selection. |
nBuffSize |
Size of the pszDirectory buffer. This should be at least L_MAXPATH bytes. |
pszFilter |
Character string containing filter string pairs. The last string must be terminated by two NULL characters. The first string in each pair is the display string and describes the filter (ex. "LEAD"). The second string in each pair is the filter pattern (ex. "*.CMP"). Use a ";" between patterns to specify multiple filter patterns (ex. "*.CMP;*.JPEG;*.JPG"). This is the same as would be used in the Microsoft SDK structure OPENFILENAMEW. (If you pass NULL, the file type combo box will disappear in the dialog). |
nFilterIndex |
An integer variable to be updated with the filter index that the user has selected in the dialog box. The first filter has an index of 1. |
pszTitle |
Character sting containing the title for the dialog box. |
pptPosition |
Ignored. |
pfnHelpCallback |
Ignored. |
pHelpCallBackUserData |
Ignored. |