From: KillerQ13@hotmail.com   
      
   "Tim Freeman" wrote in message   
   news:DFAFe.63763$oJ.60903@news-server.bigpond.net.au...   
   > Hi,   
   >   
   > How do I get my compiled help file to go to the background when I click on   
   > my application window? If I click on another application it's fine, but   
   > with my app it just stays in front.   
   >   
   > Declaration for help as below.   
   >   
   > Thanks,   
   >   
   > Tim.   
   >   
   >   
   > Public Declare Function HtmlHelp Lib "HHCtrl.ocx" Alias "HtmlHelpA" _   
   > (ByVal hWndCaller As Long, _   
   > ByVal pszFile As String, _   
   > ByVal uCommand As Long, _   
   > dwData As Any) As Long   
   >   
   > Public Const HH_DISPLAY_TOPIC As Long = 0   
   > Public Const HH_HELP_CONTEXT As Long = &HF   
   >   
   > Private Sub apphelp_Click()   
   > HtmlHelp hwnd, "apphelp.chm", HH_HELP_CONTEXT, ByVal 100&   
   > End Sub   
      
   Don't pass hWnd to the function, just use a null pointer (0&). The help   
   window can't stay in front of a window it doesn't know about.   
      
   Keith R. Weimer   
   Way Too Happy Software   
      
   --- SoupGate-Win32 v1.05   
    * Origin: you cannot sedate... all the things you hate (1:229/2)   
|