How to put wait cursor while connecting to database
I use SDI for ODBC application and create my own login dialog. When running the application, the login dialog shows up first, then I tried to put wait cursor (CWaitCursor) before I called CDatabase.Open()(in document) but failed to get waitcursor. Can someone tell me why? Thanks.
Re: How to put wait cursor while connecting to database
Look into BeginWaitCursor() and EndWaitCursor()
Re: How to put wait cursor while connecting to database
I wold create the CWaitCursor in my view class,
at the beginning of OnInitialUpdate()
Rajaraman
Re: How to put wait cursor while connecting to database
I tried to use BeginWaitCursorand EndWaitCursor. It seemed not working. However I do find that the I-beam cursor appears while accesing database (even when I use CWaitCursor). Maybe the CDatabase.Open() forces the cursor to be I-beam. I don't have any clue. Thanks anyway.