[Closed] SDK: Disable Controls
Hey guys,
I’m writing a plugin, but I’m hitting a problem that I have no clue how to fix.
I need a checkbox that when checked disables some controls in the dialog, I know that you can use p_enable_ctrls to enable controls when it’s checked but I need the inverse, like clicking the Adaptive checkbox the Interpolation rollout (that I can’t find the code for).
Thanks.
Are you using controls interited from ICustomControl??
class ICustomControl : public InterfaceServer {
public:
virtual HWND GetHwnd()=0;
virtual void Enable(BOOL onOff=TRUE)=0;
virtual void Disable()=0;
That class has a virtual disable method as shown above. Is that what you are looking for?
Or are you looking for a Win32 API approach to disabling a control?
Chris J.
Well, the one control is an MFC checkbox and the other two are a spinner (spinner and edit box). What I need to know is where/how I intercept the message that says the checkbox that these controls depend on has been clicked. I’m kinda new to the whole MFC thing…
With MFC, all bets are off. 3ds max has one module made with MFC, and that was a lone wolf module that is now considered off the table (as far as development is concerned).
I would suggest taking that general question over to codeguru.com and see what you can find. However why not create a class that inherits from spinner, and override it’s behavior?
Chris J.