Posted: Tue Aug 06, 2002 6:03 pm
Restored from previous forum. Originally posted by skypa.
Hi,
this is more an API question, but I hope someone can help me though. I am trying to read out the text of a statusbar (mscomctls_statusbar32), used i.e. at the bottom of the InternetExplorer. Now my problem is, to read out every part of a statusbar, because GetWindowText (or SendMessage_(handle, #WM_GETTEXT) will only work for the first part of the statusbar.
After some searching, I finally found the SB_GETTEXT and SB_SETTEXT variables for the SendMessage API. But if I try to read out the second part of a statusbar, for example, reading out the length of the text (with SB_GETTEXTLENGTH) will work, but not getting the text of it.
length = SendMessage_(handle, #SB_GETTEXTLENGTH, 5,0) ; 5 stands for the 5th part of the statusbar
a$ = Space(length)
SendMessage_(handle, #SB_GETTEXT,length, @a$) ; an this doesn't work
Thanks for help in advance
skypa
Edited by - skypa on 06 August 2002 20:19:35
Hi,
this is more an API question, but I hope someone can help me though. I am trying to read out the text of a statusbar (mscomctls_statusbar32), used i.e. at the bottom of the InternetExplorer. Now my problem is, to read out every part of a statusbar, because GetWindowText (or SendMessage_(handle, #WM_GETTEXT) will only work for the first part of the statusbar.
After some searching, I finally found the SB_GETTEXT and SB_SETTEXT variables for the SendMessage API. But if I try to read out the second part of a statusbar, for example, reading out the length of the text (with SB_GETTEXTLENGTH) will work, but not getting the text of it.
length = SendMessage_(handle, #SB_GETTEXTLENGTH, 5,0) ; 5 stands for the 5th part of the statusbar
a$ = Space(length)
SendMessage_(handle, #SB_GETTEXT,length, @a$) ; an this doesn't work
Thanks for help in advance
skypa
Edited by - skypa on 06 August 2002 20:19:35