Shows the file save dialog and returns the file name and format identifier if file format of the image is detected.
|
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
);
|
|
| Name | Type | Description |
|---|---|---|
| hWnd | HWND | Handle of the parent window. |
| lpTitle | LPCHAR | Dialog title. |
| lpnFormatList | LPAT_MODE | Format list. |
| nFListSize | UINT | Format list size. |
| lpFileName | LPCHAR | Pointer to the file name buffer. |
| nFNameSize | UINT | File name buffer size. |
| lpnFormat | LPAT_MODE | Format ID. |
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.
This function does not process image pixels.
Load Callback, Page, MFC Multipage
|
Copy Code
|
|
|---|---|
#include "IG_gui_common.h" IG_gui_save_filename_dlg (hWnd, NULL, NULL, 0, szFile, sizeof(szFile), &lFormat); |
|