Link to home
Start Free TrialLog in
Avatar of AndyAinscow
AndyAinscowFlag for Switzerland

asked on

How to allow a disabled window to receive mouse messages

I have a customised edit control - the non client area is modified to display what looks like a button (eg like a combo box).
This works perfectly with both dynamic creation and subclassing.

Now I would like to extend the functionality and allow an action based on this 'button' click even when the edit box is disabled.  Unfortunately the disabled window does not receive any mouse messages (at least I've not found where they are being filtered out) so the idea is shot down in flames.

Question.  (I think any of the following would be suitable.)
How can I force the disabled window to receive mouse messages?
Where are the mouse messages being filtered out - how to disable that filtering?
How can I disable the client area of a window but still leave the non client area enabled?
Any other alternative?
ASKER CERTIFIED SOLUTION
Avatar of jkr
jkr
Flag of Germany image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of AndyAinscow

ASKER

Interesting idea.
OK, I can get that to work.  It isn't so elegant but...