全屏窗口的任务栏窗口按钮图标 [英] Taskbar window button icon for full screen window

查看:95
本文介绍了全屏窗口的任务栏窗口按钮图标的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

通过将窗口的父级设置为桌面(并调整大小),该窗口将以全屏模式显示.像这样的无父母窗口有一个自动任务栏按钮,没有文本和主应用程序图标.我可以使用SetWindowText()向btton添加文本,但是不能更改任务栏按钮图标.
SetIcon()似乎无能为力.

有任何建议吗?

By setting a window''s parent to the desktop (and resizing), the window will be shown in full screen mode. A parentless window like that has an automatic taskbar button without text and the main application icon. I can add text to the btton by using SetWindowText(), but I cannot change the taskbar button icon.
SetIcon() does not seem to do anything.

Any advice?

推荐答案

在任务栏中最小化时,是否要向窗口的按钮"添加图标?
您正在使用哪个VS版本?
Do you want to add an icon to the window''s "button" when minimized in the taskbar ?
Which VS Version are you using ?


>在任务栏中最小化时,是否要向窗口的按钮"添加图标?
>您使用哪个VS版本?

我想在未最小化和最小化时都添加图标.我假设一旦设置了图标,两者将是相同的.问题是多台监视器.如果我有一台显示器,那么很明显,全屏窗口将隐藏任务栏,而我不需要该图标.当涉及多个屏幕时,辅助屏幕上的全屏窗口在主屏幕上具有任务栏按钮. (这适用于使窗口全屏显示的方法.总是有可能使用其他方法会更好.我试图将框架的大小调整到超出屏幕大小的大小,但是,由于使用了多个监视器,因此框架窗口的边缘泄漏到另一个监视器.)

我正在使用VS2008.

谢谢,
吉尔
>Do you want to add an icon to the window''s "button" when minimized in the taskbar ?
>Which VS Version are you using ?

I''d like to add the icon both when not minimized and when minimized. I assume that once I set the icon, it will be the same for both. The problem is the multiple monitors. If I had one monitor, then, obviously, the full screen window will hide the taskbar and I will not need the icon. When more than one screen are involved, the full screen window on the secondary screen has a taskbar button in the main screen. (This applies to my method of making a window full screen. It is always possible that a different method will be better. I''ve tried to resize the frame beyond the size of the screen, but, because I use multiple monitors, the edge of the frame window leaks over to the other monitor.)

I''m using VS2008.

Thanks,
Gil


这篇关于全屏窗口的任务栏窗口按钮图标的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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