Fixed window width and height problem by using SM_CXPADDEDBORDER
But it would be nicer to define this somewhere by:
#ifndef SM_CXPADDEDBORDER
#define SM_CXPADDEDBORDER 92
#endif