by ahkhome » 26 Feb 2024, 02:38
Code: Select all
MyGui := Gui()
MyGui.Opt("+Resize")
UniqueID :=WinGetControls("A")
GuiCtrl := MyGui.Add("ListView", "Checked r600 w700", ["hwnd"])
Controls := WinGetControlsHwnd(UniqueID)
ControlList := ""
for ClassNN in Controls
ControlList .= ClassNN . "`n"
if (ControlList = "")
ToolTip "The active window has no controls."
else
GuiCtrl.Add("",ControlList )
GuiCtrl.ModifyCol()
MyGui.Show
return
运行之后,listview 只有一行。如何增加换行符呢,谢谢。
[Mod edit: Added [code][/code] tags. Please use them yourself when posting code!]
[Mod edit: Moved topic from 'Ask for Help (v2)' to Chinese help subforum because of the used language. Please use English in the main forums.]
[code]MyGui := Gui()
MyGui.Opt("+Resize")
UniqueID :=WinGetControls("A")
GuiCtrl := MyGui.Add("ListView", "Checked r600 w700", ["hwnd"])
Controls := WinGetControlsHwnd(UniqueID)
ControlList := ""
for ClassNN in Controls
ControlList .= ClassNN . "`n"
if (ControlList = "")
ToolTip "The active window has no controls."
else
GuiCtrl.Add("",ControlList )
GuiCtrl.ModifyCol()
MyGui.Show
return[/code]
运行之后,listview 只有一行。如何增加换行符呢,谢谢。
[color=#FF0040][size=75][Mod edit: Added [kbd][code][/code][/kbd] tags. Please use them yourself when posting code!][/size][/color]
[color=#FF0040][size=75][Mod edit: Moved topic from 'Ask for Help (v2)' to Chinese help subforum because of the used language. Please use English in the main forums.][/size][/color]