コード例 #1
0
        /// <inheritdoc/>
        protected override HandleRef BuildWindowCore(HandleRef hwndParent)
        {
            var windowHandle = User32Wrapper.CreateWindowEx(User32Wrapper.ExtendedWindow32Styles.WS_EX_TRANSPARENT, "static", string.Empty,
                                                            User32Wrapper.Window32Styles.WS_CHILD | User32Wrapper.Window32Styles.WS_VISIBLE,
                                                            0, 0, 0, 0,
                                                            hwndParent.Handle, IntPtr.Zero, IntPtr.Zero, IntPtr.Zero);

            return(new HandleRef(this, windowHandle));
        }
コード例 #2
0
 /// <inheritdoc/>
 protected override void DestroyWindowCore(HandleRef hwnd)
 {
     User32Wrapper.DestroyWindow(hwnd.Handle);
 }