本文由优快云用户zuishikonghuan所作,转载请注明出处:
http://blog.youkuaiyun.com/zuishikonghuan/article/details/46620965
上一篇博文([Win32SDK基本]Static Control(1)Text Static Control 和 WM_CTLCOLORSTATIC,地址:http://blog.youkuaiyun.com/zuishikonghuan/article/details/46604945)中,介绍了Text Static Control的使用以及利用 WM_CTLCOLORSTATIC 消息修改其前景色和背景色,这篇将介绍 Image Static Control,他可以显示位图或图标
创建子窗口和 Static Control 相关的风格已经在上一篇中详细说了,因此这一篇中不再重复了。但把用到的几个样式再拿出来说一下:
SS_BITMAP:显示一个位图
SS_ICON:显示一个图标(MSDN: If the control is created via CreateWindow or a related function, the text is the name of an icon (not a filename) defined in