frodelan
12th June 2009 11:38 UTC
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
Afrow UK
12th June 2009 11:48 UTC
A macro is not a function. If you are passing $var to it then you don't have to. All variables are global.
Stu
kichik
12th June 2009 11:49 UTC
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.