Drop shadow on window with rounded corners

I’ve got an application that has rounded corners, but the drop shadow gets drawn around the window as if it had square corners. It appears that what I need to do is to create my own drop shadow class that handles the rounded corners, but before I go through the work, I thought I’d check if anyone else has had experience with this or if I had missed a simpler approach?

Greg