Windows API之图形界面(二)

本文深入探讨了Windows API在构建图形用户界面方面的应用,详细解析了相关函数和概念,适合对Windows编程感兴趣的读者进一步提升技能。
摘要由CSDN通过智能技术生成

Windows API之图形界面(二)

tkorays (tkorays@hotmail.com)

    在程序中会经常使用资源。利用rc.exe可以将*.rc文件编译为*.res文件,之后在链接时可以使用的资源。主要要编写资源脚本文件*.rc和资源头文件。
    资源脚本文件里定义资源,而头文件主要定义一些ID,这些ID都有一个唯一的标识。

资源定义声明可以分为三类
1)资源
ACCELERATORS   Defines menu accelerator keys.
BITMAP   Defines a bitmap by naming it and specifying the name of the file that contains it. (To use a particular bitmap, the application requests it by name.)
CURSOR   Defines a cursor or animated cursor by naming it and specifying the name of the file that contains it. (To use a particular cursor, the application requests it by name.)
DIALOG   Defines a template that an application can use to create dialog boxes.
DIALOGEX   Defines a template that an application can use to create dialog boxes.
FONT   Specifies the name of a file that contains a font.
HTML   Specifies an HTML file.
ICON   Defines an icon
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值