You cannot make a window larger than the maximum resolution of the screen. Otherwise you'll be in the perpetual not able to close or resize the window depending on ...
You want to size your window so that the client area has a fixed size? You can always try GetWindowRect() and GetClientRect() to get both the total window size and the client size, and then adjust ...