Replace maximize/normalize/minimize mouse-driven functions with winapi