在编译过程中遇到的错误!!!请高手帮忙看下
屯屯屯屯屯 2013-04-17 06:32:22 VC编译错误:left of ".SetFocus"must be have class /struct/union
这是我编写一个界面上的关于两个button的callback 函数,滑动器和普通的按钮button,为什么上面这个会报这种错误,而下面这个没有报错? 请指点一下
bool CCMXBox::m_Callback(const PTEvent* pEvent,const void*pData)
{
int nkey= pEvent->param.s[2];
Swith(nkey)
{
case KEY_UP:
case KEY_DOWN:
MulitControlBar.SetFocus();// CControlBar MulitControlBar <error>
return ture;
.....
.....
...
}
}
bool CCMXBox::t_ControlingBar(int key)
{
int nkey= key;
switch(nkey)
{
case KEY_UP:
case KEY_DOWN:
MulitControlBar.SetFocus();// <pass>
break;
...
....
......
}
}