How to create a round corner window?

I want to create a round corner window.
what I can do?

please check out this thread:

Thank you for help!
But I want have a window like using windows API CreateRoundRectRgn set window.

in windows can setting like.
HRGN hRgn = ::CreateRoundRectRgn(rcWnd.left, rcWnd.top, rcWnd.right, rcWnd.bottom, szRoundCorner.cx, szRoundCorner.cy);
::SetWindowRgn(*this, hRgn, TRUE);

How to do it in OF.