I am writing a plugin for 3ds MAX 2013. In my plugin I need the user to add some "User Defined" properties in the "Object Properties" window of a "mesh / camera / light". After entering the values I need to validate some conditions in the data, and if there are some errors I need to show a message box and cancel closing of the "Object Properties" window.
Using NOTIFY_PRE_NODE_USER_PROP_CHANGED and NOTIFY_POST_NODE_USER_PROP_CHANGED I was able to validate the conditions and show the error messages. How will I stop the closing of the window after showing the error message?
In the maxsdk for 3ds MAX 2013, In the TabDialogMessages enum I find a flag "TABDLG_PRECOMMIT" which seems to do what I need. But how can I use this flag for "Object Properties" window. If I can use this how will I get the handle of the editbox in the "User Defined" tab of "Object Properties" window.