I create a window in the height of 691. Then i create a rectangle and fill it with some paint. The rectangle (which is the "STATIC" class actually) is also height 691, but the problem is that it exceed the window, I have to pull the border (to make it higher) pretty much in order to see its end.

Any ideas what happening?