Object reference from handle

Post Reply
Carlos Mora
Posts: 988
Joined: Thu Nov 24, 2005 3:01 pm
Location: Madrid, España

Object reference from handle

Post by Carlos Mora »

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.
Carlos Mora
Posts: 988
Joined: Thu Nov 24, 2005 3:01 pm
Location: Madrid, España

Post by Carlos Mora »

Thank you, i'll try.

Regards,

Carlos.
Post Reply