Restrict scale size

1.Restrict the size when use mouse to scale the window accroding
window's minimum size and maximum size;
2.If window has fixed size, the cursor will not  change