ChatWnd and its child - PlusWnd - Printable Version -Shoutbox (https://shoutbox.menthix.net) +-- Forum: MsgHelp Archive (/forumdisplay.php?fid=58) +--- Forum: Messenger Plus! for Live Messenger (/forumdisplay.php?fid=4) +---- Forum: Scripting (/forumdisplay.php?fid=39) +----- Thread: ChatWnd and its child - PlusWnd (/showthread.php?tid=76783) ChatWnd and its child - PlusWnd by nikyiu on 08-15-2007 at 08:13 AM
I want to create a PlusWnd which is always opposite with a ChatWnd, means their position can be adjusted at the same time (likes the playlist panel of winamp). RE: ChatWnd and its child - PlusWnd by vikke on 08-15-2007 at 08:28 AM
You cannot do it with SetParent then. You got to subclass the chat window, and look for movement/resize messages. RE: ChatWnd and its child - PlusWnd by Matti on 08-15-2007 at 08:44 AM
You can't make a child window exceed it's parents boundaries. That's not what a child window is supposed to do. According to your screenshot, you want to make a search field. (which is a pretty nice idea! ) I recommend you to subclass the chat window and move your PlusWnd when you receive a WM_SIZE (and eventually a WM_SIZING) message and change the positions of your child window based on the new window rectangle. |