When an object, such as a Progressbar, is pulled out of a Toolbox, the standard "Name" is "Progressbar1", then "Progressbar2", 3, etc. After this a person could use "Progressbar1.forecolor = somecolor" or change any other property or method for the Progressbar.
When an object is made via CreateWindowEx (example: qwprogressbar = CreateWindowEx(0, PROGRESS_CLASS, vbNullString, WS_CHILD Or WS_VISIBLE Or PBS_SMOOTH, 15, 230, 250, 20, hwnd, 0, App.hInstance, ByVal 0) ), a handle is created, in this case "qwprogressbar".
How can an object that is created using "CreateWindowEx" be given a "Name" so it acts like an object that was pulled from a Toolbox so the properties and methods could be accessed the same way as if they had been pulled from a toolbox? Is this even possible? Thanks in advance for any help.
When an object is made via CreateWindowEx (example: qwprogressbar = CreateWindowEx(0, PROGRESS_CLASS, vbNullString, WS_CHILD Or WS_VISIBLE Or PBS_SMOOTH, 15, 230, 250, 20, hwnd, 0, App.hInstance, ByVal 0) ), a handle is created, in this case "qwprogressbar".
How can an object that is created using "CreateWindowEx" be given a "Name" so it acts like an object that was pulled from a Toolbox so the properties and methods could be accessed the same way as if they had been pulled from a toolbox? Is this even possible? Thanks in advance for any help.