Hello everybody,
I'm not sure if this is a bug, maybe I'm just understanding this wrong.
When I open a project in c::b which had some files open in the editor the last time it was closed, then c::b first opens these files firing a cbEVT_EDITOR_OPEN event for every opened file. A moment after that c::b fires a cbEVT_PROJECT_OPEN event. Shouldn't it be the other way around? I mean: shouldn't the cbEVT_PROJECT_OPEN event be the first event and the cbEVT_EDITOR_OPEN events follow?
The way it is now I can catch the cbEVT_EDITOR_OPEN event, I can retrieve the associated cbEditor, from the cbEditor I can retrieve the ProjectFile. But from that ProjectFile I can't retrieve its cbProject with GetParentProject(). It just returns NULL it seems. If this is right, it doesn't make much sense, since the files, open or not in an editor, are still the files of a project ...
Perhaps I'm wrong all the way ... :roll:
Regards
nausea