3ds Max C++ API Reference
ImageFilter-Related Messages

Sent by the plug-in to notify host of current progress. More...

Macros

#define FLT_PROGRESS   WM_USER + 0x20
 wParam: Current lParam: Total More...
 
#define FLT_CHECKABORT   WM_USER + 0x21
 Sent by the plug-in to check for process interruption. More...
 
#define FLT_TEXTMSG   WM_USER + 0x22
 Sent by the plug-in to display an optional textual message (for progress report). More...
 
#define FLT_TIMECHANGED   WM_USER + 0x23
 Sent by the host TO the plug-in to notify the time has changed (the user moved the time slider in Max). More...
 
#define FLT_UNDO   WM_USER + 0x24
 Sent by 3ds Max TO the plug-in to notify that an Undo operation has been done. More...
 

Detailed Description

Sent by the plug-in to notify host of current progress.

The host should return TRUE if it's ok to continue or FALSE to abort process. Messages can be sent using SendMessage() as follows:

LRESULT SendMessage(
HWND hwnd, // handle of destination window
UINT uMsg, // message to send
WPARAM wParam, // first message parameter
LPARAM lParam // second message parameter
);
See also
Class ImageFilter.

Macro Definition Documentation

◆ FLT_PROGRESS

#define FLT_PROGRESS   WM_USER + 0x20

wParam: Current lParam: Total

◆ FLT_CHECKABORT

#define FLT_CHECKABORT   WM_USER + 0x21

Sent by the plug-in to check for process interruption.

The host should return FALSE (by setting *lParam)if it's ok to continue or TRUE to abort process. wParam: 0 lParam: BOOL*

◆ FLT_TEXTMSG

#define FLT_TEXTMSG   WM_USER + 0x22

Sent by the plug-in to display an optional textual message (for progress report).

BOOL ImageFilter_Negative::Control(HWND hWnd,UINT message,WPARAM wParam,LPARAM lParam) {
switch (message) {
case FLT_UNDO:
undo = true;
break;
// . . .

wParam: 0 lParam: LPCMSTR

◆ FLT_TIMECHANGED

#define FLT_TIMECHANGED   WM_USER + 0x23

Sent by the host TO the plug-in to notify the time has changed (the user moved the time slider in Max).

wParam: 0 lParam: TimeValue t

◆ FLT_UNDO

#define FLT_UNDO   WM_USER + 0x24

Sent by 3ds Max TO the plug-in to notify that an Undo operation has been done.

The plugin will set some boolean internally and wait for the next WM_PAINT message to update any spinners or other values that may have been undone. The filter manager sends this message (if you register for the notification with RegisterTVNodeNotify()) and an undo operation was performed. wParam: 0 lParam: 0