CreateParams Confusion

时间:2014-08-06 02:07:04

标签: c# handle intptr nativewindow createparams

我正在创建一个简化设计控件的类。它叫做ControlDrawer,有三个私有字段:

  • 名为Point
  • _location
  • 名为Bitmap
  • _innerImage
  • 名为NativeWindow
  • _window

我完成了大部分课程,但这是我的标语点(注意,ControlDrawer实现了IWin32Window):

IntPtr Handle
{
    get
    {
        CreateParams cp = new CreateParams();
        cp.X = _location.X;
        cp.Y = _location.Y;

        // Code to make it so CreateParams says to display _innerImage

        _window.CreateHandle(cp);
        return _window.Handle;
    }
}

问题是,我不知道如何填写评论部分。有人可以帮忙吗?

0 个答案:

没有答案