|
Bay Six Software Beyond the Basics
|
View previous topic :: View next topic |
Author |
Message |
BASICwebmaster Guest
|
Posted: Sep 3rd, 2006, 10:11pm Post subject: WMLiberty MDI - trapping child window messages |
|
|
I'm using WMLiberty's MDI capabilities, and I can't figure out how to trap messages from all MDI child windows. Is this possible? |
|
Back to top |
|
|
BASICwebmaster Guest
|
Posted: Sep 3rd, 2006, 10:22pm Post subject: Re: WMLiberty MDI - trapping child window messages |
|
|
Nevermind, I figured it out. Here's how:
* Before you enter the scan loop, init a callback for child windows
* Be sure to global the callback address or stick it in an array, so you can see it when you create your child window
* When you create a child window, use SetWMHandler like you normally would, but with the callback you saved
This will (probably) work with all messages. I tested in with _WM_SIZE. |
|
Back to top |
|
|
|
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You can download files in this forum
|
|
|