Hi guys,

I'm trying to make a "popup" container similar to the ComboLBox class in that it destroys itself when user clicks anywhere outside of the container or any other event happens that should kill it (app lost focus, etc). I've tried creating a popup style window and used SetParent to make the desktop the owner, I've tried hooking mouse and keyboard msgs but I cant get anything working that Im happy with. I get close and then find a problem that I cant seem to work around like the parent app looses focus.

So basically, am I barking up the wrong tree. A simple control container that behaves like the ComboLBox class is all I ask.
Any suggestions, tips, sharp knives, would be very much appreciated :(

Thanks,
Emerson
Posted on 2003-11-10 13:03:27 by Emerson
Found an example but I lose control of anything I create inside the container.

Still, it explanes what I want better than I just did :)

http://www.bridgespublishing.com/articles/issues/0105/Custom_popup_controls.htm
Posted on 2003-11-10 13:17:16 by Emerson