Woody
2011-07-08 07:26:03 UTC
The custom list control I'm using has both an OnClick handler (message
map ON_NOTIFY_REFLECT_EX(NM_CLICK, OnClick)) and a left mouse button
down handler (message map ON_WM_LBUTTONDOWN()).
When I test this, I find that when the left mouse button is pressed,
but not released, no message is received by the control (i e, the
OnLButtonDown(UINT nFlags, CPoint) function is not called).
When the left mouse button is released, the OnClick handler is
executed.
What I expect is that OnLButtonDown should be executed as soon as the
left mouse button is depressed. I cannot find a definition for "click"
in this context, but I am assuming it means left mouse button down,
then up.
Is there some interaction between these two, such that if you have a
click handler, the corresponding mouse button down message is
surpressed?
map ON_NOTIFY_REFLECT_EX(NM_CLICK, OnClick)) and a left mouse button
down handler (message map ON_WM_LBUTTONDOWN()).
When I test this, I find that when the left mouse button is pressed,
but not released, no message is received by the control (i e, the
OnLButtonDown(UINT nFlags, CPoint) function is not called).
When the left mouse button is released, the OnClick handler is
executed.
What I expect is that OnLButtonDown should be executed as soon as the
left mouse button is depressed. I cannot find a definition for "click"
in this context, but I am assuming it means left mouse button down,
then up.
Is there some interaction between these two, such that if you have a
click handler, the corresponding mouse button down message is
surpressed?