// this is just for testing to see if command links are the problem (they aren't - the bg is still #f0f0f0)
hwndControl = CreateWindowEx(0, "static", "This half of the window is being rendered by a Win32 island via HwndHost. Notice how the background is #f0f0f0.",
WindowStyles.WS_VISIBLE | WindowStyles.WS_CHILD,
0, 0,
hostWidth, hostHeight,
hwndParent.Handle,
IntPtr.Zero,
IntPtr.Zero,
0);
return new HandleRef(this, hwndControl.DangerousGetHandle());
// this is just for testing to see if command links are the problem (they aren't - the bg is still #f0f0f0)
hwndControl = CreateWindowEx(0, "static", "This half of the window is being rendered by a Win32 island via HwndHost. Notice how the background is #f0f0f0.",
WindowStyles.WS_VISIBLE | WindowStyles.WS_CHILD,
0, 0,
hostWidth, hostHeight,
hwndParent.Handle,
IntPtr.Zero,
IntPtr.Zero,
0);
return new HandleRef(this, hwndControl.DangerousGetHandle());
how can i speed up this transparent image rendering in winforms?
the issue is, i don't just want a border pattern, the images usually have drop shadows and stuff, and effects inside the border that need to be stretched whilst preserving the outside