Shows the file save dialog. Returns the selected file name as a wide string (UTF-16) and page number to save or replace. It also returns the format identifier if the selected file exists and its format has been detected.
Copy Code
|
|
---|---|
BOOL ACCUAPI IG_gui_save_image_dlg_W ( HWND hWnd, LPAT_WCHAR lpwszTitle, HIGEAR hIGear, LPAT_LMODE lpnSaveList, UINT nSListSize, LPAT_IGGUI_SAVEFILE_INFO_W lpSFInfo ); |
Name | Type | Description |
---|---|---|
hWnd | HWND | Handle of the parent window. |
lpwszTitle | LPAT_WCHAR | Dialog title. |
hIGear | HIGEAR | Image handle. |
lpnSaveList | LPAT_LMODE | Format List. |
nSListSize | UINT | Format list size. |
lpSFInfo | LPAT_IGGUI_SAVEFILE_INFO_W | Pointer to AT_IGGUI_SAVEFILE_INFO_W structure that provides information on how the image file should be saved. |
If the user specifies parameters and clicks the OK button, the return value is nonzero. If the user cancels or closes the dialog box or an error occurs, the return value is zero.
This function does not process image pixels.
GUI Windows
Copy Code
|
|
---|---|
#include "IG_gui_common.h" AT_IGGUI_SAVEFILE_INFO_W SFInfo; HIGEAR hIGear; memset( &SFInfo, 0, sizeof(SFInfo) ); IG_gui_save_image_dlg_W( hWnd, NULL, hIGear, NULL, 0, &SFInfo ); |