From: carsten.troelsgaard@mail.dk   
      
   "Tim Freeman" skrev i en meddelelse   
   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   
      
   I cann't comment on your code, but my default helpwindows in vba behaves   
   this rather annoying way (as far as I can tell), so maybe it isn't your code   
   that's wrong.   
      
   Carsten   
      
   --- SoupGate-Win32 v1.05   
    * Origin: you cannot sedate... all the things you hate (1:229/2)   
|