如何绘制自定义Rubberband [英] How do I draw a custom Rubberband

查看:200
本文介绍了如何绘制自定义Rubberband的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我希望通过为Rubberband提供一个Color并使用部分透明颜色填充Rectangle来使我的Tracker更好一些。

我的类来自MFCs CRectTracker并且我正在使用对话框。

I want to make my Tracker a bit nicer, by giving the Rubberband a Color and fill the Rectangle with a partial transparent Color.
My Class is derived from MFCs CRectTracker and i'm working with Dialogs.

推荐答案

创建分层窗口。调整橡皮筋的大小可以调整窗口大小。



http://alexkr.com/source-code/50/layered-windows-and-updatelayeredwindow/

CLayeredWindowHelperST v1.0
Create a layered window. Resizing the rubber band re-sizes the window.

http://alexkr.com/source-code/50/layered-windows-and-updatelayeredwindow/
CLayeredWindowHelperST v1.0


这篇关于如何绘制自定义Rubberband的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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