Bay Six Software Forum Index Bay Six Software
Beyond the Basics
 
 FAQFAQ   SearchSearch   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

WMLiberty MDI - trapping child window messages

 
Post new topic   Reply to topic    Bay Six Software Forum Index -> WMLiberty DLL
View previous topic :: View next topic  
Author Message
BASICwebmaster
Guest





PostPosted: Sep 3rd, 2006, 10:11pm    Post subject: WMLiberty MDI - trapping child window messages Reply with quote

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





PostPosted: Sep 3rd, 2006, 10:22pm    Post subject: Re: WMLiberty MDI - trapping child window messages Reply with quote

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
Display posts from previous:   
Post new topic   Reply to topic    Bay Six Software Forum Index -> WMLiberty DLL All times are GMT
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



Lo-Fi Version
Powered by phpBB © 2001, 2005 phpBB Group