Re: Getting mouse events in disabled buttons
From: Mark Randall (strike_at_rapiercom.freeserve.co.uk)
Date: 12/03/04
- Next message: crimson13: "BS_DEFPUSHBUTTON is set automatically when selecting"
- Previous message: sze yee,Tang c2: "Re: how to trigger out IP configuration pages (control panel->network and dial-up connections->Dc211401)"
- In reply to: George Quievryn: "Getting mouse events in disabled buttons"
- Next in thread: George Quievryn: "Re: Getting mouse events in disabled buttons"
- Reply: George Quievryn: "Re: Getting mouse events in disabled buttons"
- Messages sorted by: [ date ] [ thread ]
Date: Fri, 3 Dec 2004 09:06:28 -0000
When Disabled, MS Windows blocks any user input (keyboard / mouse) from
being sent to that particular window (as noted in the MSDN).
The only possible workaround I can think of is to further derive your own
button and instead of actually disabling it, change its display so it simply
looks disabled, but still recieves events.
- MR
"George Quievryn" <GeorgeQuievryn@discussions.microsoft.com> wrote:
7B009D13DC95@microsoft.com...
>I have a class derived from CButton that I need to send notification to the
> parent when the mouse hovers over it. I was able to achieve this by
> tracking
> mouse events, but this presented a problem: it does not work if the button
> is
> disabled. Any suggestions on how to do this?
>
> I thought maybe some trick hooking into tooltips might work, but I wasn't
> successful here. I tried EnableTooltips() then handled the TTN_NEEDTEXT
> notification -- my member function was never called.
- Next message: crimson13: "BS_DEFPUSHBUTTON is set automatically when selecting"
- Previous message: sze yee,Tang c2: "Re: how to trigger out IP configuration pages (control panel->network and dial-up connections->Dc211401)"
- In reply to: George Quievryn: "Getting mouse events in disabled buttons"
- Next in thread: George Quievryn: "Re: Getting mouse events in disabled buttons"
- Reply: George Quievryn: "Re: Getting mouse events in disabled buttons"
- Messages sorted by: [ date ] [ thread ]