小男孩‘自慰网亚洲一区二区,亚洲一级在线播放毛片,亚洲中文字幕av每天更新,黄aⅴ永久免费无码,91成人午夜在线精品,色网站免费在线观看,亚洲欧洲wwwww在线观看

分享

打開幫助文檔CHM文件并且顯示關(guān)鍵詞(軟件F1鍵功能)

 夜的影子 2018-01-31

打開幫助文檔CHM文件并且顯示關(guān)鍵詞

常見代碼編輯的F1鍵功能

  1. Function OpenHtmlHelp(hWndForm As HWnd,nFile As String,nKey As String  ) As HWnd '
  2.   
  3.   Dim hh As Function (ByVal hwndCaller As HWnd , ByVal pszFile As LPCSTR , ByVal uCommand As UINT , ByVal dwData As DWORD_PTR) As HWnd
  4.   Dim As Any Ptr library = Dylibload( "hhctrl.ocx" )
  5.   hh = Dylibsymbol( library, "HtmlHelpA" )
  6.   Dim  szPath      As  String 
  7.   Dim  szText      As  String  
  8.   Dim  hlk(7) As ULong
  9.   szPath=nFile & Chr(0) 'Help 文件名,帶文件夾
  10.   szText=nKey & Chr(0) '要查尋的關(guān)鍵詞
  11.   '  hlk.cbStruct = Sizeof(hlk)
  12.   '  hlk.pszKeywords = @szText
  13.   '  hlk.fIndexOnFail = True
  14.   hlk(0)=Sizeof(hlk)
  15.   hlk(2)=Strptr(szText)
  16.   hlk(7)=1
  17.   hh( hWndForm, Strptr(szPath), 0, Null)'HH_DISPLAY_TOPIC
  18.   Function=hh( hWndForm, Strptr(szPath), &H000D, @hlk(0))'HH_KEYWORD_LOOKUP
  19.   Dylibfree( library )
  20.   ' // Size = 32 bytes
  21.   'Type HH_AKLINK
  22.   '   cbStruct     As Long        ' int       cbStruct;     // sizeof this structure
  23.   '   fReserved    As Long        ' BOOL      fReserved;    // must be FALSE (really!)
  24.   '   pszKeywords  As ZString Ptr  ' LPCTSTR   pszKeywords;  // semi-colon separated keywords
  25.   '   pszUrl       As ZString Ptr  ' LPCTSTR   pszUrl;       // URL to jump to if no keywords found (may be NULL)
  26.   '   pszMsgText   As ZString Ptr  ' LPCTSTR   pszMsgText;   // Message text to display in MessageBox if pszUrl is NULL and no keyword match
  27.   '   pszMsgTitle  As ZString Ptr  ' LPCTSTR   pszMsgTitle;  // Message text to display in MessageBox if pszUrl is NULL and no keyword match
  28.   '   pszWindow    As ZString Ptr  ' LPCTSTR   pszWindow;    // Window to display URL in
  29.   '   fIndexOnFail As Long        ' BOOL      fIndexOnFail; // Displays index if keyword lookup fails.
  30.   'End Type
  31. End Function

用法舉例:OpenHtmlHelp "X:\Help\Win32SDK.CHM","abc"

    本站是提供個人知識管理的網(wǎng)絡(luò)存儲空間,所有內(nèi)容均由用戶發(fā)布,不代表本站觀點。請注意甄別內(nèi)容中的聯(lián)系方式、誘導購買等信息,謹防詐騙。如發(fā)現(xiàn)有害或侵權(quán)內(nèi)容,請點擊一鍵舉報。
    轉(zhuǎn)藏 分享 獻花(0

    0條評論

    發(fā)表

    請遵守用戶 評論公約

    類似文章 更多