Hi George,
>I've always wondered about that. At first I assumed that the help file window was owned by the VFP window. After checking Spy++, I then assumed that it was owned by the process. Thanks for the info.
Check out the WinHelp() function in the SDK. It takes a uCommand parameter (the third one) and one of the possible values is HELP_QUIT:
HELP_QUIT Informs Windows Help that it is no longer needed. If no other applications have asked for Help, Windows closes Windows Help.
I think HTMLHelp() uses a similar mechanism, but I haven't yet verified this.
Christof
--
Christof