啊,有个抢先了,我也贴一下我的代码吧,思路不同#include <ComboConstants.au3>
#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
$Form1 = GUICreate("Form1", 247, 143, 192, 124)
$Combo1 = GUICtrlCreateCombo("", 56, 48, 145, 25, BitOR($CBS_DROPDOWN,$CBS_AUTOHSCROLL))
GUISetState()
$name="A|B|C|D|E|F|G|H|I|J|K|L|M|N|O|P|Q|R|S|T|U|V|W|X|Y|Z"
$Drive=DriveGetDrive ( "all" )
For $i=1 To UBound ($Drive)-1
$name=StringReplace($name,StringReplace ($Drive[$i],":","|"),"")
Next
GUICtrlSetData($Combo1,$name)
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
EndSwitch
WEnd
|