Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

CStatic, Z-order, and BN_CLICKED problem

8 views
Skip to first unread message

glen...@concentric.net

unread,
Apr 26, 2000, 3:00:00 AM4/26/00
to
I've made a MDI app where CMyView has CMyStatic variables that overlap one
another. When I try to handle a BN_CLICKED message from an overlapped area,
the bottom (hidden) CMyStatic always gets the click and sends the BN_CLICKED
message. I need the top (showing) one to send the message since this is
what the user will think he's clicking on. Any ideas? I'm pretty stumped
on this one. Thanks.

David Lowndes

unread,
Apr 26, 2000, 3:00:00 AM4/26/00
to

I can't offer any solution because as Knowledge Base article Q79981
"INFO: Overlapping Controls Are Not Supported by Windows" says,
overlapped controls aren't really supported.

Your particular situation probably arises because somewhere Windows
enumerates the child windows and finds the first one that contains the
area that you've clicked on. If you can circumvent this aspect -
perhaps by detecting the mouse click operation on the view window and
performing your own reverse order enumeration of the child windows,
then that may be one solution.

Dave
--
MVP VC++ FAQ: http://www.mvps.org/vcfaq
My address is altered to discourage junk mail.
Please post responses to the newsgroup thread,
there's no need for follow-up email copies.

0 new messages