Ok, I've made it so that or windows are a child of a handle window ... I have a new problem though ..

I'm catching the WM_PARENTNOTIFY message when a user clicks an a child window (say a button for instance) ... so when the user clicks the button it sends the WM+PARENTNOTIFY message which I then check for WM_LBUTTON down and if it's there I either show or hide the drag handles.

My problem is that the WM_PARENTNOTIFY message is sent so many times so quickly! I get a few dozen messages with just a single mouse click and as such the handles are shown and hiden so many times so quickly it becomes garbled and generally ends up in the wrong state anyway.

Is there a better way?