tab3 zeilenumbruch zählen
Posted: 21 Mar 2024, 15:47
Hallo,
kann man feststellen, wie viele Zeilenumbrüche das Tab3 control hat?
kann man feststellen, wie viele Zeilenumbrüche das Tab3 control hat?
Let's help each other out
https://www.autohotkey.com/boards/
https://www.autohotkey.com/boards/viewtopic.php?f=9&t=127631
Code: Select all
SendMessage, 0x132C, 0, 0, , ahk_id %TabControlHwnd%
RowCount := ErrorLevel
Code: Select all
ControlGet, thisTab_HWND, HWND,, SysTabControl321
; https://www.autohotkey.com/boards/viewtopic.php?f=9&t=127631#p564249 by just me
; Ruft die aktuelle Anzahl von Registerkartenzeilen in einem Registersteuerelement ab
; Gibt die Anzahl der Tabulatorzeilen zurück.
SendMessage, 0x132C, 0, 0, , ahk_id %thisTab_HWND% ; TCM_GETROWCOUNT (0x132C)
RowCount := ErrorLevel
msgbox,4096,% a_linenumber, % thisTab_HWND "`n" RowCount
Code: Select all
; RECT structure -> https://learn.microsoft.com/en-us/windows/win32/api/windef/ns-windef-rect
VarSetCapacity(RECT, 16, 0)
SendMessage, 0x130A, 0, &RECT, , ahk_id %thisTab_HWND%
ItemHeight := NumGet(RECT, 12, "Int") - NumGet(RECT, 4, "Int") ; unten - oben
Code: Select all
Gui, Add, Tab3, w800 h600 HwndthisTab_HWND ...