Re: Propagating messages from child to parents

brian sharon <[email protected]>
Newsgroups gmane.games.devel.windows
Message-ID <[email protected]>
You can subclass the window procedure of the toolbar so that you can 
catch the messages sent from the slider and pass them up to your app's 
wndproc (with SendMessage as someone else suggested).  I suspect that 
MFC does a lot of heavy lifting for you in this area, but I don't know 
if you're using it.  Subclassing windows isn't that hard anyway.

I think you can also create the slider with your app's window as the 
parent, and then after it's created, call SetParent to change the 
parent window to the toolbar...that might get the messages going to 
your parent while maintaining the correct hierarchy for drawing.  Kind 
of a hack though.

--brian

On Jul 30, 2004, at 7:36 AM, Brian Hook wrote:

> Let's say I make a toolbar window and add a slider to it.  The slider
> will automatically send messages to the toolbar window, but I want
> those slider messages to get to the application.  Is there a standard
> way of doing this (or does a toolbar automatically propagate child
> messages upstream if it doesn't understand them?).
>
> Thanks,
>
> Brian



-------------------------------------------------------
This SF.Net email is sponsored by OSTG. Have you noticed the changes on
Linux.com, ITManagersJournal and NewsForge in the past few weeks? Now,
one more big change to announce. We are now OSTG- Open Source Technology
Group. Come see the changes on the new OSTG site. www.ostg.com
_______________________________________________
Gamedevlists-windows mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/gamedevlists-windows
Archives:
http://sourceforge.net/mailarchive/forum.php?forum_id=555
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.