07-25-2005 07:15 AM
07-25-2005 05:49 PM
Apparently your code sounds good, so here some general hints to try to discover what's happening.
1. Does InsertListItem return an error code? Try getting the return code of the function and look at its value:
err = InsertListItem (...) err is =0 if the function is succesful.
2. Is mainPanel variable visible inside the callback? Is it loaded with the correct handle of the panel on which the listbox is?
3. I saw the string has MAX_PATHNAME_LEN size: is it filled with a pathname? If so, maybe the software is trying to interpret a backslash as an escape code, which is not, and so gives erroneous result in inserting the text in the listibox. Try putting the usual "Hello world!" in the string control and see if it's displayed correctly.
07-27-2005 07:11 AM
07-27-2005 07:56 AM
Greber,
The reason it didn't work was because the handle that you get back from 'EasyTab_ConvertFromCanvas' is not a handle to an easytab panel. Rather it's a handle to a container for easytab panels. The way you get an easytab panel handle is from 'EasyTab_LoadPanels'