Author Topic: MFC WaitCursor question  (Read 789 times)

0 Members and 1 Guest are viewing this topic.

Doolittle

  • Online Villain
  • ***
  • Posts: 214
  • processInitCommands
    • View Profile
MFC WaitCursor question
« on: February 04, 2011, 05:21:24 am »
I have a CWinApp that spawns a CDialog which creates another CDialog. I'd like to call "AfxGetApp()->DoWaitCursor(1)" or "BeginWaitCursor" but I don't know how to intercept this message in CWinApp so that it stays as a cursor hourglass. I can capture this nicely in each CDialog via "OnSetCursor" but there's no "OnSetCursor" for CWinApp.

So: how to get mouse to be a waiting cursor for all open dialogs?

Some of what I'm talking about: http://support.microsoft.com/kb/131991 http://msdn.microsoft.com/en-us/library/gg153552.aspx
This post dedicated to MP ArmA cheaters, you warthog faced buffoons. Why do you have to ruin my enjoyment of the game, pigs? You scare away players, you miserable, vomitus masses.

Doolittle

  • Online Villain
  • ***
  • Posts: 214
  • processInitCommands
    • View Profile
Re: MFC WaitCursor question
« Reply #1 on: February 04, 2011, 06:15:29 am »
I think I figured it out. Not possible to intercept in CWinApp. You must define OnSetCursor for all CDialogs.  :icon_sad2
This post dedicated to MP ArmA cheaters, you warthog faced buffoons. Why do you have to ruin my enjoyment of the game, pigs? You scare away players, you miserable, vomitus masses.