ImageGear for C and C++ on Windows v19.6 - Updated
IG_gui_open_dir_dlg
API Reference Guide > GUI Component API Reference > GUI Component Functions Reference > General Functions > IG_gui_open_dir_dlg

This function displays "Open Directory..." dialog.

Declaration:

 
Copy Code
BOOL  ACCUAPI  IG_gui_open_dir_dlg(
        HWND hWnd,
        LPCHAR lpDirName,
        UINT nBufSize
);

Arguments:

Name Type Description
hWnd HWND A handle of the parent window.
lpDirName LPCHAR A path to the directory.
nBufSize UINT The size of buffer provided by lpDirName.

Return Value:

Function return TRUE if the OK button is clicked; or FALSE otherwise.

Supported Raster Image Formats:

This function does not process image pixels.

Sample:

Display

Remarks:

This function accepts handle of parent window as first argument and returns directory path via second lpDirName argument. nBufSize argument specifies the size of buffer provided by second argument.