|
楼主 |
发表于 2012-7-17 00:26:17
|
显示全部楼层
本帖最后由 qq309266378 于 2012-7-18 17:03 编辑
Exit
Case $Pic[0] To $Pic[UBound($Pic) - 1]
If $Msg <> $Pic[$Item] Then
GUICtrlSetImage($Pic[$Item], @ScriptDir & '\img_black.bmp')
GUICtrlSetcolor($Pic[$Item] + 1, 0xFFFFFF)
GUICtrlSetImage($Msg, @ScriptDir & '\img_white.bmp')
GUICtrlSetcolor($Msg + 1, 0x313A42)
$Item = _Index($Msg)
GUICtrlSendMsg($Tab, $TCM_SETCURFOCUS, $Item, 0)
$Over = -1
EndIf
EndSwitch
WEnd
Func _Index($CtrlID)
For $i = 0 To UBound($Pic) - 1
If ($CtrlID = $Pic[$i]) Or ($CtrlID = $Pic[$i] + 1) Then
Return $i
EndIf
Next
Return -1
EndFunc ;==>_Index
上面的代码学生不懂,求翻译 |
评分
-
查看全部评分
|