BOOL CViewMyView::OnSetCursor(CWnd* pWnd, UINT nHitTest,UINT message)
{
if(m_ChangeCursor){
RestoreWaitCursor();
return TRUE;
}
return CViewStn::OnSetCursor(pWnd, nHitTest, message);
//instead of CView::OnSetCursor... as my view belongs to CViewStn
}
void CViewMyViw::OnButtonGet()
{
...
m_ChangeCursor = TRUE;
BeginWaitCursor();
//From here we go through another class which calls the Report function
...
}
void CViewMyView::Report()
{
//create report
...
EndWaitCursor();
m_ChangeCursor = FALSE;
...
}
One of my problems is that i never get to the OnSetCursor it's supposed to be called automatically right?