void MyClass::DrawPoint(CPoint PositionPoint,CDC* pDC,int LineStyle,int LineWidth)CDC* pDC参数在C#怎么表示?

解决方案 »

  1.   

    C#有专门的画图方法,干嘛非得要掉用API啊
      

  2.   

    DrawPoint是读符号库文件来绘制一个符号的
      

  3.   

    cdc只是vc++的一个封装类。
    你一定要对应的话,是没有的, 不过,可以对应到hdc。那个是graphics.gethdc();
    也可以从hdc中构造出来一个 hdc, 查下graphics中的构造函数。或者自己引入api, 那样也只能用hdc.IntPtr这个类型 ,对你也许有点用。
      

  4.   

    通过GDI+去画
    Graphics graphics = e.Graphics;
                Font drawFont = new Font("Arial", 16);
                SolidBrush drawBrush = new SolidBrush(Color.Black);
                graphics.DrawString("", drawFont, drawBrush, sc.p);
      

  5.   

    用e代替CDC* pDC
    graphics代替pDC是吗?