csdn的高手都哪里去了?难道没一个人会吗?

解决方案 »

  1.   

    查api:BOOL WinHelp(    HWND hWndMain, // handle of window requesting Help 
        LPCTSTR lpszHelp, // address of directory-path string 
        UINT uCommand, // type of Help 
        DWORD dwData // additional data 
       );
    参数1                               参数2
    uCommand             Action dwData
    HELP_COMMAND Executes a Help macro or macro string. Address of a string that specifies the name of the Help macro(s) to execute. If the string specifies multiple macros names, the names must be separated by semicolons. You must use the short form of the macro name for some macros because Help does not support the long name.
    HELP_CONTENTS Displays the topic specified by the Contents option in the [OPTIONS] section of the .HPJ file. This is for backward compatibility. New applications should provide a .CNT file and use the HELP_FINDER command. Ignored, set to 0.
    HELP_CONTEXT Displays the topic identified by the specified context identifier defined in the [MAP] section of the .HPJ file. Unsigned long integer containing the context identifier for the topic.
    HELP_CONTEXTPOPUP Displays, in a pop-up window, the topic identified by the specified context identifier defined in the [MAP] section of the .HPJ file. Unsigned long integer containing the context identifier for a topic.
    HELP_FORCEFILE Ensures that WinHelp is displaying the correct help file. If the incorrect help file is being displayed, WinHelp opens the correct one; otherwise, there is no action. Ignored, set to 0.
    HELP_HELPONHELP Displays help on how to use Windows Help, if the WINHELP.HLP file is available. Ignored, set to 0.
    HELP_INDEX Displays the Index in the Help Topics dialog box. This command is for backward compatibility. New applications should use the HELP_FINDER command. Ignored, set to 0.
    HELP_KEY Displays the topic in the keyword table that matches the specified keyword, if there is an exact match. If there is more than one match, displays the Index with the topics listed in the Topics Found list box. Address of a keyword string.
    HELP_MULTIKEY Displays the topic specified by a keyword in an alternative keyword table. Address of a MULTIKEYHELP structure that specifies a table footnote character and a keyword. 
    HELP_PARTIALKEY Displays the topic in the keyword table that matches the specified keyword, if there is an exact match. If there is more than one match, displays the Index tab. To display the Index without passing a keyword (the third result), you should use a pointer to an empty string. Address of a keyword  string.
    HELP_QUIT Informs the Help application that it is no longer needed. If no other applications have asked for Help, Windows closes the Help application. Ignored, set to 0.
    HELP_SETCONTENTS Specifies the Contents topic. The Help application displays this topic when the user clicks the Contents button. Unsigned long integer containing the context identifier for the Contents topic.
    HELP_SETINDEX Specifies a keyword table to be displayed in the Index of the Help Topics dialog box. Unsigned long integer containing the context identifier for the Index topic.
    HELP_SETWINPOS Displays the Help window, if it is minimized or in memory, and sets its size and position as specified. Address of a HELPWININFO structure that specifies the size and position of either a primary or secondary Help window.
      

  2.   

    1)
    help_finder激活帮助文档
    0帮助文档的索引号
    2)
    很多地方有源代码,自己找