基于非对话框的MFC应用程序上的按钮

基于非对话框的MFC应用程序上的按钮

本文介绍了基于非对话框的MFC应用程序上的按钮的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



是否可以在基于非对话框的MFCApplication中的客户区域上添加按钮,就像我可以在其中绘制矩形一样?

PS:我是C ++,MFC和CodeProject的新手,所以对不起.


Nelek,感谢您的链接.我设法用CButton类创建按钮.
但是现在,正如您所说,我认为我可以基于对话框来完成我的项目,因为这样会更容易学习基础知识.

Pallini,thansk是链接,但我认为它描述了对话框按钮的使用(对话框句柄).

PS:谢谢你们双方的答复.我看到我有很多事情要做.

对不起,一团糟.试图删除我的答案.

在OP答案后添加"之后:
再次感谢您的建议.将阅读更多内容并尝试.

Hi,

Is it possible to add a button on client area in Non-Dialog Based MFCApplication, just like I can draw there a rectangle ?

PS: I am new to C++, MFC and CodeProject so sorry for anything wrong.


Nelek, thanks for link. I managed to create button with CButton class.
But now, as You say, I think that I can do my project based on dialogs as it would be easier to learn the basics.

Pallini, thansk for link, but I think it describes dialog use of buttons (Dialog handles).

PS: Thanks both of You for replies. I see that I have a lot of reading to do.

Sorry for the mess. Trying to remove my answer.

After ''Addition after OP answer'':
Thanks again for suggestions. Will read some more and try this.

推荐答案




这篇关于基于非对话框的MFC应用程序上的按钮的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-20 13:56