I have a ActiveX.ocx and is used with IE 6 or 7. I want to delay the destruction/closing of the component/window if the component is busy (i.e. downloading).
procedure TComponent.OnClose(var Msg:TMessage); message WM_CLOSE;
but it seems not to work.
procedure TComponent.OnClose(var Msg:TMessage); message WM_DESTROY;
but I am getting an access violation.
So I want to prevent the destruction of the component and window closing until the component is no longer busy. Any ideas and examples would be greatly appreciated.
I am able to close the ActiveX window without any issues when the component is inactive, however, when I close it while it is active I get access violation errors.