I'm trying to create a window that will show up on the right side of my screen and always be visible.

This is what I have:

$MainWin = new Win32::GUI::Window(
         -name => "MainWin",
         -pos => [1240,0],
         -size => [40,990],
         -maxsize => [40,990],
         -minsize => [40,990],
         -pushexstyle => WS_EX_TOPMOST && WS_EX_TOOLWINDOW,

The problem I'm having is that when I maximize the window of any other application it has part of it hidden by this window, usually the scroll bar.  Is there an option to set so that anytime I maximize another window it will take up the entire screen minus this window?