890817-在可停靠窗格中插入的窗口 [英] 890817 - a window inserted in a dockable pane

查看:72
本文介绍了890817-在可停靠窗格中插入的窗口的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


在可停靠窗格(CDockablePane)中创建按钮或列表框时,使用该控件没有问题.
但是,当我创建静态对象时,不会将其发送给WM_LBUTTONDOWN,而是将窗格拖动.
问题出在哪里,我该如何解决?
谢谢.

Hi,
When I create a button or list box in a dockable pane (CDockablePane) I''ve no problem using the control.
But when I create a static, WM_LBUTTONDOWN is not sent to it and the pane is dragged instead.
What''s the problem and how can I resolve it?
Thanks.

推荐答案

请不要在多个论坛上发布相同的问题:这不会增加您获得答案的机会,反而会使人们浪费时间进行回答两次一样的事情.

谢谢!
Please, do not post the same question on multiple forums: that doesn''t increase your chances to get an answer but make people wasting their time answering the same things twice.

Thank you!


我认为我已经更接近症状了.在禁用子窗口的窗口中,即使该点击位于子窗口中,该点击也会发送给其父窗口.我认为这就是可停靠窗格获得点击的原因.对吧?
我用编辑框替换了自定义控件,但是这种情况再也没有发生,并且单击可停靠窗格中插入的编辑控件后,该控件便发送给了编辑控件本身.我也尝试过静态文本.它没有被禁用,但是点击被发送到了可停靠的窗格(父).我也尝试了禁用按钮.该点击再次发送给了父级.
现在我的问题是,如何使点击发送到自定义控件?是什么导致点击被发送到父窗口,而不是子窗口本身.
为了回答您的问题,我可以说自定义控件是作为可停靠窗格的子级创建的.
thx
i think that i''ve got a bit closer to the symptom. in a window when a child window is disabled the click is sent to its parent, even though it''s on the child window. i think this is why the dockable pane receives the click. right?
i replaced my custom control with an edit box and this didn''t happen again and clicking on the edit control inserted in the dockable pane was sent to the edit control itself. i tried a static text too. it was not disabled, but the click was sent to the dockable pane (parent). i also tried a disabled button. the click was sent to the parent again.
now my question is that how can i make the click be sent to the custom control? what causes the click to be dispatched to the parent window, not the child itself.
in response to ur question, i may say that the custom control is created as a child of the dockable pane.
thx


这篇关于890817-在可停靠窗格中插入的窗口的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆