Restricted vertical resizing using PInvoke handles