Archived

This topic is now archived and is closed to further replies.

Yanroy

WM_LBUTTONDOWN not being received by control...

Recommended Posts

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

Share this post


Link to post
Share on other sites
Guest Anonymous Poster
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.

Share this post


Link to post
Share on other sites