LDialogDocument::DoModalRemoveRedEye
#include "ltwrappr.h"
virtual L_INT LDialogDocument::DoModalRemoveRedEye(hWndOwner)
HWND hWndOwner; |
/* handle of the window which owns the dialog */ |
Displays the Remove Redeye dialog box, and gets the options for LBitmap::RemoveRedEye.
Parameter |
Description |
hWndOwner |
Handle of the window which owns the dialog. |
Returns
SUCCESS_DLG_OK |
The "OK" button was pressed, and the dialog exited successfully. |
SUCCESS_DLG_CANCEL |
The "Cancel" button was pressed, and the dialog exited successfully. |
< 1 |
An error occurred. Refer to Return Codes. |
Comments
LDialogDocument::SetRemoveRedEyeParams must be called before using this function to set the initial values for the dialog. You can get the updated REMOVEREDEYEDLGPARAMS with the values entered by the user through the dialog by using LDialogDocument::GetRemoveRedEyeParams.
The Remove Redeye dialog is shown in the following figure:
Required DLLs and Libraries
LTDLGIMGDOC For a listing of the exact DLLs and Libraries needed, based on the toolkit version, refer to Files To Be Included With Your Application |
See Also
Functions: |
|
Topics: |
Example
void TestFunction(LBitmap * pBitmap, HWND hWnd)
{
LDialogDocument DlgDocument;
LDialogDocument::Initialize(0);
DlgDocument.SetBitmap(pBitmap);
REMOVEREDEYEDLGPARAMS DlgParams;
memset ( &DlgParams, 0, sizeof ( REMOVEREDEYEDLGPARAMS ) ) ;
DlgParams.uStructSize = sizeof ( REMOVEREDEYEDLGPARAMS ) ;
DlgDocument.EnableCallBack(FALSE);
DlgDocument.EnablePreview(TRUE);
DlgDocument.EnableAutoProcess(TRUE);
DlgDocument.EnableToolbar(TRUE);
DlgDocument.SetRemoveRedEyeParams(&DlgParams) ;
DlgDocument.DoModalRemoveRedEye(hWnd);
// Gets the updated values for the structure
DlgDocument.GetRemoveRedEyeParams(&DlgParams, sizeof(DlgParams)) ;
LDialogDocument::Free();
}