摘要
主要介绍了在面向对象的VC++.NET语言环境下,通过使用WM_LBUTTONDOWN,WM_MOUSEMOVE,WM_LBUTTONUP等鼠标事件消息,采用橡皮条绘图法,编写一个鼠标交互式绘图程序.该程序可实现绘制随机的平面图形,也可通过鼠标的拖动画出大小不同的圆,椭圆,矩形,直线等平面图形.
The authors mainly introduce how to use rubber-banding to code mouse-interactive drafting programme through WM_ LBUTTONDOWN, WM_ MOUSEMOVE, WM_ Lalso draw circles, eBUTTONUP, etc. This programme can draw random plane figure. It can llipses, rectangles or straight lines that differ in size.
出处
《甘肃联合大学学报(自然科学版)》
2006年第2期34-36,共3页
Journal of Gansu Lianhe University :Natural Sciences
关键词
鼠标事件消息
橡皮条方法
前景色
背景色
mouse message
rubber-banding
foreground eolour
background colour