Jugoslav Dujic
2003-11-06 08:59:04 UTC
Usually, one sees the obvious when he tries to post a question
to a newsgroup... let me try :-).
I need to implement a popup window, containing few controls,
that will behave more or less like a popup menu -- opened by
a click, and closed by a click elsewhere. "Elsewhere" means
in any other window in the application, and there are quite
a few. I'm kinda out of ideas how to implement it simply:
- handling mouse down everywhere else looks inelegant to the
point of stupidity
- SetCapture is out, as it effectively disables child controls
within the popup window
- owner-drawn popup menu with child controls looks like a cludge
(and I'm not sure whether it's possible to place them there)
All ideas appreciated (no, I didn't get one in the meantime
:-( )
to a newsgroup... let me try :-).
I need to implement a popup window, containing few controls,
that will behave more or less like a popup menu -- opened by
a click, and closed by a click elsewhere. "Elsewhere" means
in any other window in the application, and there are quite
a few. I'm kinda out of ideas how to implement it simply:
- handling mouse down everywhere else looks inelegant to the
point of stupidity
- SetCapture is out, as it effectively disables child controls
within the popup window
- owner-drawn popup menu with child controls looks like a cludge
(and I'm not sure whether it's possible to place them there)
All ideas appreciated (no, I didn't get one in the meantime
:-( )
--
Jugoslav
___________
www.geocities.com/jdujic
Jugoslav
___________
www.geocities.com/jdujic