Hi Aurel
Taking the Jose snippet:
PB / Jose:
LOCAL szTabTxt AS ASCIIZ * 256
nTab = SendMessage(ghTabMdi, %TCM_GETITEMCOUNT, 0, 0)
FOR idx = 0 TO nTab - 1
' Get tab item text string
ttc_item.mask = %TCIF_TEXT
ttc_item.pszText = VARPTR(szTabTxt)
ttc_item.cchTextMax = SIZEOF(szTabTxt)
SendMessage ghTabMdi, %TCM_GETITEM, idx, BYVAL VARPTR(ttc_item)
...
Oxygen
LOCAL szTabTxt AS ASCIIZ * 256
nTab = SendMessage(ghTabMdi, %TCM_GETITEMCOUNT, 0, 0)
indexbase 0
FOR idx = 0 TO nTab - 1
' Get tab item text string
ttc_item.mask = %TCIF_TEXT
ttc_item.pszText = strptr(szTabTxt)
ttc_item.cchTextMax = 256 'buffer size
SendMessage ghTabMdi, %TCM_GETITEM, idx, & ttc_item)
...
I think its the buffersize you need. (256)