I'm trying to create a Win32 window that has rounded corners and is resizable both horizontally and vertically. My first approach was to create BITMAP of a rounded rectangle and draw it to the screen in conjunction with setting the windows style to WS_EX_LAYERED and setting the transparency key to the outside color of the rounded rectangle.
This works, but it only looks good if the window is a fixed size. If I allow the user the resize the window and stretch the bitmap along with it, the rounded corners look stretched out, too. Is there a way to create a window that has nice, smooth rounded corners and is resizable in windows? Eventually, I would also like to add a drop shadow to the window as well.