我想在XPButton.cpp中定义一种新的按钮对象,其中有一个是设置鼠标的,请问下面这个AfxGetApp()前面应该是什么呢,为啥总是编译不通过,
在XPButtonDemo.cpp使用了这个按钮对象
BOOL CXPButton::OnSetCursor(CWnd* pWnd, UINT nHitTest, UINT message) 
{
// TODO: Add your message handler code here and/or call default
HCURSOR hCursor;
hCursor=((CXPButtonDemoApp*)AfxGetApp())->LoadCurSor(IDC_CURSOR1);
if(::SetCursor(hCursor))
return true;
return CButton::OnSetCursor(pWnd, nHitTest, message);
}