Winapi 按钮区域Win32Api

Winapi 按钮区域Win32Api,winapi,Winapi,我使用此代码创建一个按钮: hWndBtn = CreateWindow(L"Button", WS_CHILD | WS_VISIBLE | BS_PUSHBUTTON, x, y, width, height, hWndParent, (HMENU)IDC_MYBUTTON, hInst, NULL); 然后,我创建一个椭圆区域: HRGN hRgn = CreateEllipticRgn(x1, y1, x2, y2); 最后我设置了按钮区域: SetWindowRgn(hWndBtn

我使用此代码创建一个
按钮

hWndBtn = CreateWindow(L"Button", WS_CHILD | WS_VISIBLE | BS_PUSHBUTTON, x, y, width, height, hWndParent, (HMENU)IDC_MYBUTTON, hInst, NULL);
然后,我创建一个椭圆区域:

HRGN hRgn = CreateEllipticRgn(x1, y1, x2, y2);
最后我设置了按钮区域:

SetWindowRgn(hWndBtn, hRgn, true);

但我的按钮还是长方形的。如何使其成为椭圆?

SetWindowRgn
仅适用于顶级窗口,而不适用于子窗口