ermmmm... like you said, the container then becomes the button's parent instead of the window. So you'll get messages to the hwnd of the container. I'd have to see how you are checking before I could answer. Been quite a while since I've done low level winder messaging like that.
Kanati
Kanati