'listbox' : undeclared identifier syntax error : identifier 'CListBox'
int CanvasFrame::OnCreate(LPCREATESTRUCT lpCreateStruct)
{
if (CFrameWnd::OnCreate(lpCreateStruct) == -1)
return -1;
listbox = new CListBox;
listbox->CreateEx( WS_EX_CLIENTEDGE,"ListBox",
NULL,LBS_STANDARD|WS_VISIBLE|WS_CHILD,
CRect(10,50,180,300),
this,ID_LIST); //建立CListBox对象
......