Re: [GD-Windows] Propagating messages from child to parents
Brought to you by:
vexxed72
From: brian s. <pud...@po...> - 2004-07-31 01:50:41
|
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 |