Shows the file open dialog and returns the file name and the page number to load, specified as a wide string (UTF-16). It returns the format identifier if the format is detected.
Declaration:
Copy Code | |
---|---|
BOOL ACCUAPI IG_gui_load_page_dlg ( HWND hWnd, LPAT_WCHAR lpwszTitle, LPAT_WCHAR lpwszFileName, UINT nFNameSize, LPAT_MODE lpnFormatID, LPUINT lpnPage ); |
Arguments:
Name | Type | Description |
hWnd | HWND | Handle of the parent window. |
lpwszTitle | LPAT_WCHAR | Dialog title. |
lpwszFileName | LPAT_WCHAR | Pointer to the file name buffer. |
nFNameSize | UINT | File name buffer size. |
lpnFormatID | LPAT_MODE | Format ID. |
lpnPage | LPUINT | Image page number. |
Return Value:
If the user specifies parameters and clicks the OK button, the return value is non-zero. If the user cancels or closes the dialog box or an error occurs, the return value is zero.
Supported Raster Image Formats:
All pixel formats supported by ImageGear Professional.
Sample:
GUI Windows, PDF Demo
Example:
Copy Code | |
---|---|
#include "IG_gui_common.h" IG_gui_load_page_dlg_W(hWnd, NULL, wszFile, sizeof(wszFile), NULL, &nPage); |