开发者

Catching WM_LBUTTONDOWN on a label?

For some reason I can't seem to catch the WM_LBUTTONDOWN event on a label ("STATIC" window). When monitoring with Winspector it appears the message always arrives to the parent window. However, according to the docs, the message should be posted to the Window beneath the 开发者_运维知识库cursor.

Does anyknow have an idea why the message does not arrive in the WindowProc function of the label?


Check if the 'Notify' property(SS_NOTIFY) of the label is checked. This means that the label notifies its parent about the mouse events. http://msdn.microsoft.com/en-us/library/bb760773(VS.85).aspx

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜