本文介绍了从列表控件中将图标绘制到矩形中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在使用Rectangle()绘制3 * 3矩形;但是现在如果我单击该矩形,我想在该矩形中显示图像,该图像是从列表控件中选择的.我知道我想处理OnLButtonDown()消息,但是我的问题是我无法区分单击鼠标时绘制的矩形和Windows矩形.请帮帮我.
Hi,
I am drawing 3*3 rectangle by using Rectangle(); but now if I click on that rectangle, I want to display the image in that rectangle, which is selected from the list control. I know that I want to handle OnLButtonDown() message, but my problem is that I couldn''t differentiate the rectangle which I drawn and the windows rectangle on mouse click. Help me out please.
推荐答案
这篇关于从列表控件中将图标绘制到矩形中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!