Archive: Call function with param at NSD_OnChange


Call function with param at NSD_OnChange
Hello.
Is it possible to call a function which take parameters (macro) when using NSD_OnChange.

Now I have this line:

${NSD_OnChange} $Test OnChangeTest

I like to send params to function OnChangeTest, may I do something like this? Where ${OnChangeTest} is a macro.

${NSD_OnChange} $Test ${OnChangeTest} $var

Best regards, frode l


A macro is not a function. If you are passing $var to it then you don't have to. All variables are global.

Stu


Nope. It already gets the control HWND on the stack, which you must pop. You can use SetUserData to save data for that specific control, a context. That's the closest you can get to a parameter for the function.