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?
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.
* 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.
Page 1 of 1
You cannot post new topics in this forumYou 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