将cbutton添加到dockablepane [英] add cbutton to dockablepane

查看:100
本文介绍了将cbutton添加到dockablepane的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我创建了一个默认的SDI应用程序,并希望修改从CDockablePane派生的CCLassView。



我在客户区添加了一个按钮,但它没有正确显示并且无法点击。



我认为树视图正在渲染按钮,因此我将树视图更改为树控件并将其调整为不填充整个客户区。然后我为它添加了按钮和消息映射。



按钮被绘制为好像它是半透明的?并且没有可用的鼠标操作。是什么东西被吸引过来?



有谁知道我做错了什么?



顺便说一下,树控件工作正常,我可以根据需要调整大小。这只是按钮不正确。

I create a default SDI application and want to modify the CCLassView which is derived from CDockablePane.

I have added a button to the client area but it does not display properly and is not clickable.

I thought that the treeview was rendering over the button, so I changed the treeview to a tree control and resized it to not fill the entire client area. Then I added the button and messagemap for it.

the button is drawn as if it is semi transparent? and no mouse action is available for it. Liek something is being drawn over it?

anyone know what I am doing wrong?

btw, the tree control works just fine and I can resize as desired. it's just that the button is not correct.

推荐答案

这篇关于将cbutton添加到dockablepane的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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