First of all, you should ALWAYS call the default message handler.
2nd of all, how small? Windows won't let you prevent it from resizing smaller than a certain point, due to the fact this would prevent window minimizing, which is really just resizing a window and moving it down. check the dimensions of a window next time you minimize it. I don't see anything wrong with your code (except the case part).