如何重叠的两个控制两个

由网友(眼有星辰月光)分享简介:我有一个圆和线路控制。圆形控制的OnPaint中绘制一个圆和直线控制的一个提请线。这两个控件都包含在另一个控制(DrawingControl)。我需要把一个行过圆,但圆的背景删除线。我试图使透明度和覆盖圈的OnPaintBackground方法,但它似乎并没有工作。你有什么想法?谢谢你。I have a Ci...

我有一个圆和线路控制。 圆形控制的OnPaint中绘制一个圆和直线控制的一个提请线。这两个控件都包含在另一个控制(DrawingControl)。 我需要把一个行过圆,但圆的背景删除线。我试图使透明度和覆盖圈的OnPaintBackground方法,但它似乎并没有工作。 你有什么想法? 谢谢你。

I have a Circle and a Line control. Circle control's OnPaint draws a circle and Line control's one draws a line. These two controls are contained in another control (DrawingControl). I need to put a Line over a Circle, but Circle's background deletes the Line. I tried enabling transparency and overriding Circle's OnPaintBackground method, but it doesn't seem to work. Do you have any ideas? Thanks.

推荐答案

请问这个教程帮助吗?它由三步骤:启用透明,覆盖OnPaintBackground并覆盖OnMove

Does this tutorial help? It consists of three steps: Enabling transparency, overriding OnPaintBackground and overriding OnMove

阅读全文

相关推荐

最新文章