TKC-Community
Welcome,
Guest
. Please
login
or
register
.
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
News:
Back online!
Home
Help
Search
Login
Register
TKC-Community
»
Hacking and Art
»
General Modding & Programming / Other Games
(Moderator:
[TKC]Symantic
) »
MFC WaitCursor question
« previous
next »
Print
Pages: [
1
]
Author
Topic: MFC WaitCursor question (Read 789 times)
0 Members and 1 Guest are viewing this topic.
Doolittle
Online Villain
Posts: 214
processInitCommands
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
Logged
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
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.
Logged
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.
Print
Pages: [
1
]
« previous
next »
TKC-Community
»
Hacking and Art
»
General Modding & Programming / Other Games
(Moderator:
[TKC]Symantic
) »
MFC WaitCursor question