Shows the file open dialog and returns the file name, the page number to load, and if the format is detected, it also returns the format identifier.
|
Copy Code
|
|
|---|---|
BOOL ACCUAPI IG_gui_load_page_dlg (
HWND hWnd,
LPCHAR lpTitle,
LPCHAR lpFileName,
UINT nFNameSize,
LPAT_MODE lpnFormatID,
LPUINT lpnPage
);
|
|
| Name | Type | Description |
|---|---|---|
| hWnd | HWND | Handle of the parent window. |
| lpTitle | LPCHAR | Dialog title. |
| lpFileName | LPCHAR | Pointer to the file name buffer. |
| nFNameSize | UINT | File name buffer size. |
| lpnFormatID | LPAT_MODE | Format ID. |
| lpnPage | LPUINT | Image page number. |
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.
All pixel formats supported by ImageGear for C and C++.
Clipboard, Color, Image Processing, JPEG, Magnify, Medical, Memory IO, Palette Edit, Panning, Pixel Access, Poster, Print, Wipes, Annotation, Vector, Filters, ImageClean, ISIS, TWAIN
|
Copy Code
|
|
|---|---|
#include "IG_gui_common.h" IG_gui_load_page_dlg(hWnd, NULL, szFile, sizeof(szFile), NULL, &nPage); |
|