I'm looking the way to get a reference to a control's object, given the hWnd (handle) of the control.
In clipper it can be done using GetProp( hWnd, 'WP' ) that gives the index into aWindows array.
An aScan can be done in aDialog:aControls looking for control's ID, but it is slow and is a little bit complex if there are Folders, Pages and other multidialog controls, and aControls is not allways available if oParent is not a Dialog/Window.
Any sugestion is welcome.
Regars,
Carlos.
Object reference from handle
-
- Posts: 988
- Joined: Thu Nov 24, 2005 3:01 pm
- Location: Madrid, España
- Enrico Maria Giordano
- Posts: 7355
- Joined: Thu Oct 06, 2005 8:17 pm
- Location: Roma - Italia
- Contact:
-
- Posts: 988
- Joined: Thu Nov 24, 2005 3:01 pm
- Location: Madrid, España