How would I programatically duplicate or create a new one of moeur's HookCtrls? I have one on my form but I will need to duplicate it when new windows open. I have no idea how, I keep getting weird errors. Can anyone help?
Printable View
How would I programatically duplicate or create a new one of moeur's HookCtrls? I have one on my form but I will need to duplicate it when new windows open. I have no idea how, I keep getting weird errors. Can anyone help?
If a class doesn't have a Clone or Copy method that will do it for you then creating a duplicate object is a case of the obvious: create a new object and set all the properties to the same values.