删除mfc子窗口的默认子图标。 [英] removing the default child icon of mfc child window.

查看:230
本文介绍了删除mfc子窗口的默认子图标。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

每个使用两个默认图标创建的mfc应用程序,

1)MFC图标: - 用于主窗口。

2 )Doc图标: - 用于子窗口。



我在givn文章的帮助下替换了主窗口图标,

替换默认MFC图标 [ ^ ]



但是当我处理子框架时出现了问题图标。

我可以在SetIcon()mfc函数的帮助下替换子窗口图标。

但是我想从子窗口中删除图标而不是替换。

i尝试过,

Hi All,
Every mfc application created with two default icons,
1)MFC icon :- for main window.
2)Doc icon :- for child window.

I replaced main window icon with help of givn article,
Replacing the Default MFC Icon[^]

But problem arised when i deal with child frame icon.
I can replace child window icon with help of SetIcon() a mfc function.
but i want remove the icon from child window and not replace.
i tried,

SetIcon(NULL,TRUE);
SetIcon(NULL,FALSE);



In :: OnCreate of Child frame但它不工作。除了删除图标,它显示一个空白图标。 />


我也试图删除..



& = ~WS_SYMENU



但也删除了最大化,最小化和关闭按钮。

请帮助我,

从子框架的标题中删除子框架图标。

你们的一些暗示值得我很多。



谢谢,

Santosh dhanawade。


In ::OnCreate of Child frame but its not working.instead of removing icon it displays a blank icon.

I also tried to remove ..

&=~WS_SYMENU

but removes maximize , minimize and close button also.
Please help me ,
to remove the child frame icon from title of child frame.
little hint of you guys worth me lot.

Thanks,
Santosh dhanawade.

推荐答案

然后你必须自己覆盖非客户区域的图形,甚至可以处理mous点击和窗口拖动。绘制标题栏的客户区上方的区域称为非客户区,此处或CodeGuru上的一些遗留文章可能会解释如何进行绘图。是的,这很复杂。像Jochen所说,你应该认真考虑为什么要这么做。
Then you must override the drawing of the non-client area yourself, and perhaps even handle the mous clicking and window dragging as well. That area above the client area where the title bar is drawn is called the non-client area, and some legacy articles here or on CodeGuru might explain how to do that drawing. Yes, it IS complicated. Like Jochen said, you should seriously consider why you want or need to do this.


这篇关于删除mfc子窗口的默认子图标。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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