在Win32 GUI中更改位图图像的颜色 [英] change colour of a bitmap image in win32 GUI

查看:153
本文介绍了在Win32 GUI中更改位图图像的颜色的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


在Visual Studio 2003中,单击时如何更改位图图像的颜色.我有两个不同的彩色位图图像.我正在启动时显示其中一个.

Hi,
In visual studio 2003, how to change colour of a bitmap image when I click on it. I have two different coloured bitmap images. I am displaying one of them at startup.

推荐答案

是的,我通过在WM_COMMAND中使用STN_CLICKED获得了它.在使用它之前,请在主窗口中为位图图像创建一个窗口,然后然后,当单击该窗口(位图图像​​)时,控件转到STN_CLICKED,则需要加载图像.
我使用了标记,因此每次单击图像时,它都会更改颜色.
yah i got it,by using STN_CLICKED in WM_COMMAND.before using it create a window for bitmap image in main window and then when ever click goes on that window(bitmap image) control goes to STN_CLICKED,there need to load image.
i used flag,so that every time i click on image it change color.


这篇关于在Win32 GUI中更改位图图像的颜色的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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