RE: [GD-Windows] WA_CLICKACTIVE vs. WM_MOUSEACTIVATE
Brought to you by:
vexxed72
From: Brian H. <bri...@py...> - 2002-01-29 23:15:23
|
Oddly enough, I'm also not receiving WA_CLICKACTIVE in WM_ACTIVATE...curiouser and curiouser. > -----Original Message----- > From: gam...@li... > [mailto:gam...@li...] On > Behalf Of Brian Hook > Sent: Tuesday, January 29, 2002 3:01 PM > To: gam...@li... > Subject: [GD-Windows] WA_CLICKACTIVE vs. WM_MOUSEACTIVATE > > > Here's a weird one. I'm trying to change my app so that when > a mouse click activates a window I automatically discard the > mouse click (so that unpausing doesn't inadvertently allow > the user to exit the game, restart, etc.). > > I was originally going to do this programmatically by letting > my main app look at the timestamps of the last activation > message vs. incoming mouse down events, but the delta can > vary by a significant amount of time (at least 2ms). Trying > to make this work by altering the tolerance seems iffy at best. > > The next thing I decided to look at was WA_CLICKACTIVE, but > while looking at that I found WM_MOUSEACTIVATE and returning > MA_ACTIVATEANDEAT. Unfortunately, my app NEVER sees a > WM_MOUSEACTIVATE > -- I've confirmed this with Spy++. This is on Win2K. > However, someone else I know sees this event just fine -- any > ideas what's going on here? > > Failing WM_MOUSEACTIVATE, I'll look into WA_CLICKACTIVE and > set a flag to ignore the next mouse message, but now I'm > curious what's up with WM_MOUSEACTIVATE. > > Brian > > > _______________________________________________ > Gamedevlists-windows mailing list > Gam...@li... > https://lists.sourceforge.net/lists/listinfo/gamedevlists-windows > |