Shows the file save dialog and returns the file name and format identifier if file format of the image is detected.
Declaration:
Copy Code |
|
|---|---|
BOOL ACCUAPI IG_gui_save_filename_dlg (
HWND hWnd,
LPCHAR lpTitle,
LPAT_MODE lpnFormatList,
UINT nFListSize,
LPCHAR lpFileName,
UINT nFNameSize,
LPAT_MODE lpnFormat
);
|
|
Arguments:
| Name | Type | Description |
| hWnd | HWND | A handle of the parent window. |
| lpTitle | LPCHAR | A dialog title. |
| lpFileName | LPAT_MODE | A pointer to the file name buffer. |
| nFNameSize | UINT | The file name buffer size. |
| lpnFormatList | LPCHAR | A format list. |
| nFListSize | UINT | A format list size. |
| lpnFormat | LPAT_MODE | A format ID. |
Return Value:
If the user specifies the 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:
This function does not process image pixels.
Sample:
Load Callback, Page, MFC Multipage
Example:
Copy Code |
|
|---|---|
#include "IG_gui_common.h" IG_gui_save_filename_dlg (hWnd, NULL, NULL, 0, szFile, sizeof(szFile), &lFormat); |
|