• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 254
  • Last Modified:

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?
  • 2
1 Solution
>>Any other alternative?

What about a message hook local to your process? See http://msdn.microsoft.com/en-us/library/ms997537.aspx ("Win32 Hooks")
AndyAinscowFreelance programmer / ConsultantAuthor Commented:
Interesting idea.
AndyAinscowFreelance programmer / ConsultantAuthor Commented:
OK, I can get that to work.  It isn't so elegant but...
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now