;请参考_WinAPI_WinHelp 函数的帮助3.3.6.1中的例子有点问题
;下面问题语句注释掉测试OK
#include <Constants.au3 >
#Include <GUIConstantsEx.au3>
#Include <WinAPIEx.au3>
#Include <WindowsConstants.au3>
;Opt('MustDeclareVars', 1)
Global $hForm
$hForm = GUICreate('MyGUI', 400, 400, -1, -1, BitOR($WS_CAPTION, $WS_POPUP, $WS_SYSMENU), $WS_EX_CONTEXTHELP)
GUIRegisterMsg($WM_SYSCOMMAND, 'WM_SYSCOMMAND')
GUISetState()
Do
Until GUIGetMsg() = -3
;_WinAPI_WinHelp($hForm, $HELP_QUIT)
GUIDelete($hForm)
Func WM_SYSCOMMAND($hWnd, $iMsg, $wParam, $lParam)
Switch $wParam
Case 0xF180 ; SC_CONTEXTHELP//这个消息....
;_WinAPI_WinHelp($hForm, $HELP_FORCEFILE, @SystemDir & '\winhelp.hlp')
MsgBox(0, "问号被点击", "你点击了系统菜单的帮助按钮")
EndSwitch
;Return $GUI_RUNDEFMSG;貌似这句亦有问题
EndFunc
|