|
-
Jun 9th, 2022, 08:38 PM
#2
Re: How to get mouse events when button is disabled ?
 Originally Posted by CVMichael
I override the OnMouseDown event
No you don't. OnMouseDown is a method. It's the method that raises the MouseDown event. You override methods and you handle events.
If the OnMouseDown method is not called then I think the next option would to override the WndProc method and see whether the control receives the corresponding messages from Windows. If not then I would think that you'd have to handle MouseDown for the parent and check whether it occurred within the bounds of your control. I'm not sure exactly what being disabled means under the hood but, if it means not receiving Windows messages, there's nothing you can really do about it.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|