The YSize property specifies the height, in pixels, of the window if a new window is created. For GUI processes, this is ...

The YSize property specifies the height, in pixels, of the window if a new window is created. For GUI processes, this is used only the first time the new process calls CreateWindow to create an overlapped window if the nWidth parameter of CreateWindow is CW_USEDEFAULT.  Note, XSize and YSize cannot be specified independently.