This function shows the dialog that allows you to change an image (device, clipping) rectangle.
|
Copy Code
|
|
|---|---|
BOOL ACCUAPI IG_gui_dspl_rect_dlg (
HWND hWnd,
LPAT_IGGUI_DSPL_RECT lpDsplRectData
);
|
|
| Name | Type | Description |
|---|---|---|
| hWnd | HWND | A handle of the parent window. |
| lpDsplRectData | LPAT_IGGUI_DSPL_RECT | A pointer to the AT_IGGUI_DSPL_RECT structure. |
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++.
Display, Annotation
|
Copy Code
|
|
|---|---|
#include "IG_gui_common.h" AT_IGGUI_DSPL_RECT DsplRect; memset (&DsplRect,0,sizeof(DsplRect)); DsplRect.cbSize = sizeof (DsplRect); DsplRect.hWnd = hWnd; DsplRect.hIGear = hIGear; DsplRect.dwGrpID = nGrpID; DsplRect.uRectType = IG_IGGUI_DSPL_RECTTYPE_IMAGE; IG_gui_dspl_rect_dlg (hWnd, &DsplRect); InvalidateRect (hWnd,NULL,FALSE); UpdateWindow (hWnd); |
|