home bbs files messages ]

Forums before death by AOL, social media and spammers... "We can't have nice things"

   comp.lang.visual.basic      MS Visual Basic discussions, NOT dot-net      10,840 messages   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]

   Message 9,630 of 10,840   
   Keith R. Weimer to Tim Freeman   
   Re: Help file always in the foreground   
   27 Jul 05 03:55:17   
   
   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)   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]


(c) 1994,  bbs@darkrealms.ca