If Windows does not remember the window position and size then this post will help you fix the problem. Although Windows 11/10 should open the closed windows in their last used size and position, ...
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 ...