There is this app I am working on that has several dialogue boxes codes and resource being contained in MFC Extension DLL's.
The problem is that some times these dialogue boxes take some time to process before being destroyed which may give the user the impression than the app has hung.
So i decided to load the WAIT cursor during processing ( to give users feedback that the app is still much running) and load back the ARROW cursor once processing is done.
The strange thing is that all my efforts so far have yielded no result.
I have used all of the following approaches:
1.
CWinApp *pWinApp = AfxGetApp();
HCURSOR hNewCursor = pWinApp.LoadCursor(IDC_WAIT);
HCURSOR hOldCursor = SetCursor(hNewCursor);
SetCurSor(hOldCursor);
2.
HCURSOR hOldCurLoadCursor(m_DLLInstance,IDC_WAIT);
SetCusor(hOldCursor);
3.
HCURSOR hOldCurLoadCursor(m_AppInstance,IDC_WAIT);
SetCusor(hOldCursor);
Yet I get no cursor change.
Please , how do I resolve this?