BUG: HTML Help: HH_DISPLAY_SEARCH API Command Does Not Perform a Search

ID: Q241381


The information in this article applies to:
  • Microsoft HTML Help 1.22


SYMPTOMS

According to the HTML Help Workshop online documentation, the HH_DISPLAY_SEARCH API command displays the search tab in the Navigation pane of the HTML Help Viewer and then performs a search for the term specified in the pszSearchQuery parameter. In reality, the search is not performed.


CAUSE

This problem is caused by a bug in the HTML Help control.


RESOLUTION

It is not possible to start a full-text search from the HTML Help API.


STATUS

Microsoft has confirmed this to be a bug in the Microsoft products listed at the beginning of this article.


MORE INFORMATION

You can use the HH_DISPLAY_SEARCH command in the following example to display the search tab; however a search is not performed:


HH_FTS_QUERY q ;

q.cbStruct         = sizeof(HH_FTS_QUERY) ;

q.fUniCodeStrings  = FALSE ;

q.pszSearchQuery   = "culture";

q.iProximity       = HH_FTS_DEFAULT_PROXIMITY ;

q.fStemmedSearch   = FALSE :

q.fTitleOnly       = FALSE ;

q.fExecute         = FALSE ;

q.pszWindow        = NULL ;


HtmlHelp(hwnd,"cat.chm",HH_DISPLAY_SEARCH,(DWORD)&q);
 

Additional query words:

Keywords : kbAPI kbHTMLHelp kbDSupport kbGrpDSTools
Version : WINDOWS:1.22
Platform : WINDOWS
Issue type : kbbug


Last Reviewed: October 22, 1999
© 2000 Microsoft Corporation. All rights reserved. Terms of Use.