Hi all. I'm using the hWnd property of a FlexGrid control to get the Client Rect of the control.
Write code referring to FlexGrid.hWnd in the form module and the property is non-zero. However, Control.hWnd or FlexGrid.hWnd are zero in a custom class (a wrapper object referenced in the same form). Even more bizarrely, FlexGrid.hWnd is non-zero in the custom class if you refer to it in the form module first.
Any ideas how to get round this?
Write code referring to FlexGrid.hWnd in the form module and the property is non-zero. However, Control.hWnd or FlexGrid.hWnd are zero in a custom class (a wrapper object referenced in the same form). Even more bizarrely, FlexGrid.hWnd is non-zero in the custom class if you refer to it in the form module first.
Any ideas how to get round this?