Tying several objects to one class function?
-
I know it's not supported with the Classwizard, but is there a way to tie a class function to several objects, and have a pointer to the "clicked" object passed to the function? I have ten rows (exact copies) on a dialog form, and i'd like to have one univeral function for each column, instead of ten seperate functions for each object. If a pointer to this object was passed, I could easily do everything I need within this one function. I've had this ability in other GUI packages. Maybe I'm just spoiled and this can't be done here. I'm just trying to streamline my code. Any help is appreciated. Todd Krzeminski tkrzeminski@nlxcorp.com
-
I know it's not supported with the Classwizard, but is there a way to tie a class function to several objects, and have a pointer to the "clicked" object passed to the function? I have ten rows (exact copies) on a dialog form, and i'd like to have one univeral function for each column, instead of ten seperate functions for each object. If a pointer to this object was passed, I could easily do everything I need within this one function. I've had this ability in other GUI packages. Maybe I'm just spoiled and this can't be done here. I'm just trying to streamline my code. Any help is appreciated. Todd Krzeminski tkrzeminski@nlxcorp.com
Try ON_CONTROL_RANGE. Tomasz Sowinski -- http://www.shooltz.com
- It's for protection
- Protection from what? Zee Germans?