更改Delphi控制台应用程序的图标 [英] Change icon for a Delphi console application

查看:126
本文介绍了更改Delphi控制台应用程序的图标的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何更改Delphi控制台应用程序的程序图标?

How do I change the program icon for a Delphi console application?

控制台应用程序中的应用程序设置为灰色。

The application settings is greyed in a console application.

再见。

推荐答案

根据尼布·托马斯(Nibu Thomas)在2007年7月发表的博客文章,似乎出现了 SetConsoleIcon WinAPI函数。

According to a July 2007 blog article by Nibu Thomas, there seems to be a SetConsoleIcon WinAPI function.

或者只是将图标放在资源文件中。 Windows应该使用在应用程序资源中遇到的第一个图标作为应用程序图标。

Alternatively just put the icon in a resource file. Windows should use the first icon it encounters in the application's resources as the application icon.

这篇关于更改Delphi控制台应用程序的图标的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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