List of ImageFilter Related Messages
See Also: Class ImageFilter.
The following message are sent to 3ds max from an Image Filter plug-in. This can be done using the SendMessage() Win32 function:
LRESULT SendMessage(
HWND hwnd, // handle of destination window
UINT uMsg, // message to send
WPARAM wParam, // first message parameter
LPARAM lParam // second message parameter
);
FLT_PROGRESS
Sent by the plug-in to notify 3ds max of its current progress.
wParam: Current amount processed
lParam: Total amount to process.
FLT_CHECKABORT
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 processing.
wParam: Pass 0.
lParam: Pointer to a BOOL.
FLT_TEXTMSG
Sent by the plug-in to display a text message to the user.
wParam: 0
lParam: LPCTSTR
The following message are sent by 3ds max to a Image Filter plug-in or to 3ds max from an Image Filter. These may be processed inside a dialog proc (for example the filter's Control() method).
Sample Code:
BOOL ImageFilter_Negative::Control(HWND hWnd,UINT message,WPARAM wParam,LPARAM lParam) {
switch (message) {
case FLT_UNDO:
undo = true;
break;
case FLT_TIMECHANGED:
// . . .
FLT_TIMECHANGED
Sent by 3ds max to the plug-in to notify the time has changed (the user moved the time slider in 3ds max).
wParam: 0
lParam: TimeValue t
FLT_UNDO
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 in order 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