DoModal briefly shows IDC_WAIT, why?

Robbie Gluon 1 Reputation point
2022-10-09T14:04:45.093+00:00

I'm using WTL (not that it should make a difference). In my program when the user clicks an element in the UI, I show a modal dialog. The modal dialog is derived from ATL::CDialogImpl<Dialog_Base>. I create the dialog and call DoModal(). The dialog displays when I do this. So far, so good.

The problem I have is when I call DoModal the mouse cursor changes to IDC_WAIT just for a split second (the blue circle), and sometimes a little long than split, more half a second or so. I'm not changing the mouse cursor to IDC_WAIT at all and as far as I can see neither is WTL.

Can someone explain what's going on here? Is Raymond Chen around?

Windows API - Win32
Windows API - Win32
A core set of Windows application programming interfaces (APIs) for desktop and server applications. Previously known as Win32 API.
2,422 questions
C++
C++
A high-level, general-purpose programming language, created as an extension of the C programming language, that has object-oriented, generic, and functional features in addition to facilities for low-level memory manipulation.
3,527 questions
{count} votes