BASICwebmaster
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?

BASICwebmaster
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.


Page 1 of 1


Jump to:  
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

Full Version
Powered by phpBB © phpBB Group
Design by phpBBXS.Com | Lo-Fi Mod.