BBC BASIC for Windows
« EM_LINEINDEX and EM_LINELENGTH message for the IDE »
Welcome Guest. Please Login or Register. Apr 5th, 2018, 9:58pm
ATTENTION MEMBERS: Conforums will be closing it doors and discontinuing its service on April 15, 2018. Ad-Free has been deactivated. Outstanding Ad-Free credits will be reimbursed to respective payment methods.
If you require a dump of the post on your message board, please come to the support board and request it.
I notice that the EM_LINEINDEX and EM_LINELENGTH messages also seem not to work in a standard way
EM_LINELENGTH isn't used at all. EM_LINEINDEX is partially implemented, but the value it returns is not the offset from the start of the program but the absolute memory address. If you know the value of PAGE by other means, you can subtract it from the returned value to get the offset.
If you know the value of PAGE by other means, you can subtract it from the returned value to get the offset.
BB4W v6.00a provides an 'official' way of obtaining the value of PAGE by means of a new message WMU_GETPAGE which has the value 1047. It takes no parameters (wParam and lParam are ignored).