The EFFECTDLGPARAMS structure provides information used to initialize the dialog box created by the LDialogEffect::DoModalGetEffect function. After the user closes the dialog box, this structure is updated with information about the user's selections.
typedef struct _EFFECTDLGPARAMS
{
L_UINT uStructSize;
pBITMAPHANDLE pBitmap;
L_UINT uEffect;
L_UINT uGrain;
L_UINT uDelay;
L_UINT uMaxPass;
L_BOOL bTransparent;
COLORREF crTransparent;
L_UINT uWandWidth;
COLORREF crWand;
L_UINT32 uDlgFlags;
LTCOMMDLGHELPCB pfnHelpCallback;
L_VOID *pHelpCallBackUserData;
} EFFECTDLGPARAMS, * LPEFFECTDLGPARAMS;
Size of this structure, in bytes. Use the sizeof operator to calculate this value.
Ignored.
The effect to use.
The grain size.
The delay, in milliseconds.
The maximum number of passes.
Flag that indicates whether to use a transparent color. Possible values are:
Value | Meaning |
---|---|
TRUE | Use the transparent color specified in crTransparent. |
FALSE | Do not use a transparent color. |
The transparent color to use. You can specify a COLORREF value, such as the return value of the Windows RGB macro, or you can use the PALETTEINDEX macro to specify a palette color.
The width of the wand, in pixels.
The color of the wand. You can specify a COLORREF value, such as the return value of the Windows RGB macro, or you can use the PALETTEINDEX macro to specify a palette color.
User interface flags for this dialog, which determine the layout and action of the dialog. Possible values are:
Value | Meaning |
---|---|
DLG_EFFECT_SHOW_CONTEXTHELP | [0x00000001] dialog should contain a context sensitive help icon. |
DLG_EFFECT_SHOW_PREVIEW | [0x00000002] show a preview of the image in the dialog. The pBitmap member of this structure should contain a valid bitmap. |
DLG_EFFECT_AUTOPREVIEW | [0x00000004] auto preview when options change |
DLG_EFFECT_DELAY | [0x00000008] effect delay is an option |
DLG_EFFECT_GRAIN | [0x00000010] effect grain is an option |
DLG_EFFECT_PASSES | [0x00000020] effect passes is an option |
DLG_EFFECT_TRANSPARENT | [0x00000040] transparency is an option |
DLG_EFFECT_WAND | [0x00000080] wand is an option |
DLG_EFFECT_NO_TREEVIEW | [0x00000100] DO NOT use TreeView |
DLG_EFFECT_CLASS_NONE | [0x00000200] no effect is an option |
DLG_EFFECT_CLASS_WIPE | [0x00000400] linear wipe is an option |
DLG_EFFECT_CLASS_WIPERECT | [0x00000800] rectangular wipe is an option |
DLG_EFFECT_CLASS_WIPECIRCLE | [0x00001000] circular wipe is an option |
DLG_EFFECT_CLASS_PUSH | [0x00002000] push is an option |
DLG_EFFECT_CLASS_SLIDE | [0x00004000] slide is an option |
DLG_EFFECT_CLASS_ROLL | [0x00008000] roll is an option |
DLG_EFFECT_CLASS_ROTATE | [0x00010000] rotate is an option |
DLG_EFFECT_CLASS_ZOOM | [0x00020000] zoom is an option |
DLG_EFFECT_CLASS_DRIP | [0x00040000] drip is an option |
DLG_EFFECT_CLASS_BLIND | [0x00080000] blind is an option |
DLG_EFFECT_CLASS_RANDOM | [0x00100000] random is an option |
DLG_EFFECT_CLASS_CHECK | [0x00200000] check is an option |
DLG_EFFECT_CLASS_BLOCKS | [0x00400000] blocks is an option |
DLG_EFFECT_CLASS_CIRCLE | [0x00800000] circle is an option |
DLG_EFFECT_CLASS_ELLIPSE | [0x01000000] ellipse is an option |
Ignored.
Ignored.