void CShow::OnClickList1(NMHDR* pNMHDR, LRESULT* pResult)
{
POSITION pos=m_List.GetFirstSelectedItemPosition();
int cursel=m_List.GetNextSelectedItem(pos);
CMainFrame* pmain=(CMainFrame*) GetParentFrame();
pmain->pviewrt->m_ins.m_Name.SetAt(cursel,1);//我想把当前Clistctrl的记录取出来放在文本框里
*pResult = 0;
}
//////////////////////////////////////////////////////////////////
--------------------Configuration: SdiTry - Win32 Debug--------------------
Compiling...
Show.cpp
C:\MfcTest\SdiTry\Show.cpp(140) : error C2065: 'CMainFrame' : undeclared identifier
C:\MfcTest\SdiTry\Show.cpp(140) : error C2065: 'pmain' : undeclared identifier
C:\MfcTest\SdiTry\Show.cpp(140) : error C2059: syntax error : ')'
C:\MfcTest\SdiTry\Show.cpp(141) : error C2227: left of '->pviewrt' must point to class/struct/union
C:\MfcTest\SdiTry\Show.cpp(141) : error C2227: left of '->m_ins' must point to class/struct/union
C:\MfcTest\SdiTry\Show.cpp(141) : error C2228: left of '.m_Name' must have class/struct/union type
C:\MfcTest\SdiTry\Show.cpp(141) : error C2228: left of '.SetAt' must have class/struct/union type
Error executing cl.exe.
SdiTry.exe - 7 error(s), 0 warning(s)
请问上面是什么意思啊??