   How to limit how much the user can move a window?
  Hi,Im making a simple win32 api program which has toolbars inside the main window, and i need to prevent the toolbar windows from leaving the main window.Iv found the WM_GETMINMAXINFO message, but it only sets the maximised size, which is not what i want. I havent been able to find anything else.Any help would be appreciated   
  Handling WM_WINDOWPOSCHANGING should do the trick.   ;  thanks   