将图片控件作为控件的背景 [英] put a picture control as a background of controls

查看:72
本文介绍了将图片控件作为控件的背景的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想将图片控件设置为控件的背景.而且我想更改图片控件的颜色.

I want set the picture control as a Background of control. And I want to change color of picture control.

推荐答案

我认为您不想将图片控件用作背景,您只想绘制图像作为背景.

在您的控件类中,尝试覆盖OnEraseBkgnd并从此处使用CDC::BitBlt绘制位图.
I think you don''t want to put a picture control as a background, you just want to draw an image as a background.

In you control class, try to override OnEraseBkgnd and draw your bitmap with CDC::BitBlt from here for example.


这篇关于将图片控件作为控件的背景的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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