关于画图的问题
我想知道填充像素的代码是怎么写的? 是pDC->FloodFill()吗?
你的意思是给象素着色? 可以使用 COLORREF SetPixel( HDC hdc, // handle to DC int X, // x-coordinate of pixel int Y, // y-coordinate of pixel COLORREF crColor // pixel color ); Parameters hdc [in] Handle to the device context。
X [in] Specifies the x-coordinate, in logical units, of the point to be set。 Y [in] Specifies the y-coordinate, in logical units, of the point to be set。
crColor [in] Specifies the color to be used to paint the point。 To create a COLORREF color value, use the RGB macro。
。
是给点着色。。hdc。。就是设备描述表的指针。。跟画图之类相关的都需要这个东西。。intX,//x-coordinateofpixelintY,//y-coordinateofpixel就是点的坐标罗。。 的格式。。就是RGB(0,0,0)之类的结构体。。。
答:先把图表做出,然后按下图详情>>
答:桌面图标是无法自动得到,因为图标的存在与否应用程序无法知道。 如果你确认在桌面上可能会有这个图标,那么你只要遍历桌面所有的图标,然后把指向该应用程序的图标都更改...详情>>