WM_LBUTTONDOWN not being received by control...

Started by
0 comments, last by Yanroy 20 years, 8 months ago
I''ve created a custom control in MFC that is derived from CStatic. I have added an OnLButtonDown() message handler, but it never gets called... any ideas why? I''d like to make the control detect mouse drags in it''s client area. --------------------

You are not a real programmer until you end all your sentences with semicolons; (c) 2000 ROAD Programming
You are unique. Just like everybody else.
"Mechanical engineers design weapons; civil engineers design targets."
"Sensitivity is adjustable, so you can set it to detect elephants and other small creatures." -- Product Description for a vibration sensor

Yanroy@usa.com

--------------------

You are not a real programmer until you end all your sentences with semicolons; (c) 2000 ROAD Programming
You are unique. Just like everybody else.
"Mechanical engineers design weapons; civil engineers design targets."
"Sensitivity is adjustable, so you can set it to detect elephants and other small creatures." -- Product Description for a vibration sensor

Yanroy@usa.com

Advertisement
on the static controls Styles properties page in the resource editor, make sure you have Notify checked. if you''re creating it at runtime, make sure it has the SS_NOTIFY style.

This topic is closed to new replies.

Advertisement