如何以不同的方式自定义CFrameWnd? [英] How customize CFrameWnd in different ways?

查看:71
本文介绍了如何以不同的方式自定义CFrameWnd?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好!我只是MFC和C ++的新手.
我需要更改Frame的视图,我在CWinApp中有CWinApp和CFrameWnd !!!我想要更改Window和Frame的视图,就像设置背景创建圆角一样,只需一个字即可更改我的应用程序样式,该怎么办?我试图在google中找到一些东西,但这很困难,每个链接都不相同.
您可以通过一些教程或一段代码来帮助我吗?如何设置Frame和App的不同属性.
感谢u

Hello!I''m just very new in MFC and C++.
I need to change view of Frame.I have CWinApp and CFrameWnd in CWinApp!!!I want change view of Window and Frame, like set background create round corners, by one word change a style of my app.How can I do it?I tried to find something in google, but that''s a hard, each one link is different.
Can u help me by some tutorial or piece of code?How set different properties of Frame and App.
Thank u

推荐答案

这是一个高级主题,答案可以填满一本书.

实际上它已经装满了书...

您可以通过实现MFC主题来取得一些进步.

您可以通过使用向导创建启用了主题的MFC应用程序来查看这些操作.

或者,您也可以尝试以下入门文章:
MFC应用程序的自定义窗口 [
This is an advanced topic and the answers can fill a book.

In fact it has filled books...

You may be able to make some progress by implementing MFC themes.

You can see these in action by using the wizard to create an MFC application, with themes enabled.

Or you can try this article for starters:
A Customized Window for MFC Applications[^]

If that doesn''t get you what you want, then Microsoft puts the source code for MFC in the install directories. you can copy the portions of the code that you wish to modify to your project. Repair the build errors and then customize that code.

Once you get out on the bleeding edge of development in this fashion, you''ll likely be on your own. Not many people have a need to do this, so likely won''t find much help. I personally haven''t needed to do this in over a year and have no examples on hand.

In my applications, it''s typically the doc template code I find necessary to modify, not the window frame styling.

Good luck. This isn''t really a beginner topic...


这篇关于如何以不同的方式自定义CFrameWnd?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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