@Morten:
I think that the parsertest project should make as simple as possible, so I'm planning to remove the "codeblocks.dll" dependency, also, I think cbStyleTextCtrl is not necessary.

My plan is:
One file for test parsing(test.h)
class wxWindow
{
int aaaaa;
};
// The template parameter W must be a wxWindow-derived class.
template <class W>
class wxNavigationEnabled : public W
{
public:
typedef W BaseWindowClass;
};
class wxPanelBase : public wxNavigationEnabled<wxWindow>
{
};
wxPanelBase ccccc;
and one file for test resolving expression(test_expression.exp)
The expression file can contains something like:
expression:
ccccc.aaaaa
expected result:
variable int wxWindow::aaaaa
The only issue is that it can only test expression from "global namespace".

But I think it was just enough good if we have many testing files. Introducing the class cbStyleTextCtrl was just trying to find the which function the cursor was located in.