O.P. RE: Pass object to a Wnd
So maybe we phrased it a bit awkward...
But, a method/function is nothing more than an extended form of variable, so you can 'pass' methods
And when I mean, 'to pass an object/method to a window' I mean passing it to the CreateWnd function, wich would add it to the window, it's just how you phrase it
Objects, Methods and variables can all be properties of an object. When you create a constructor for your own custom object, you'll learn such things...
And as we stated before, we would like to 'pass' a 'variable/method/object' to the CreateWnd 'function' wich 'adds' them to the 'Window' so we can use them in the OnWindowCtrlClicked event, perhaps as callback, or perhaps as an settings object...
And we would like to make it standalone, instead of using a global var, especially for callbacks, this would be a great improvement
|