- // Make a panel
- panel = new wxPanel(this);
- wxListBox *list = new wxListBox(panel, SERVER_LISTBOX, wxPoint(5, 5));
- list->Append("Apple");
- list->Append("Pear");
- list->Append("Orange");
- list->Append("Banana");
- list->Append("Fruit");
-
- panel->Fit();
- Fit();
+ // Make a listbox
+ wxListBox *list = new wxListBox(this, SERVER_LISTBOX);
+ list->Append(_T("Apple"));
+ list->Append(_T("Pear"));
+ list->Append(_T("Orange"));
+ list->Append(_T("Banana"));
+ list->Append(_T("Fruit"));