Making a sidebar

Is there anyway to make a sidebar in windows (like google sidebar) that grabs the right side of the screen and then ms windows resizes the screen to the smaller left side? . I want to be able to have a window that is modal on the right side , but have windows just assume the screen size is now smaller .
Hamish

You can do it by windows api calls

Thanks. Any clues or pointers where to look ?
Hamish

Use the declares SHAppBarMessage and SetWindowPos. Only these two are required

Thankyou , I would never have found those. Have to see if I can implement them in XOJO.