I have a CFrameWnd with a three way static split; two columns with the right column being split horizontally. The left column is a CListView derivative. The top-right and bottom-right views are CFormView derivatives. I can calculate the size of each pane and I use that information in calls to SetColumnInfo()/SetRowInfo(). Given the sizes of each pane, how can one resize the CFrameWnd to the desired size of the CSplitterWnds taking into account menu, title bar, menu bar and tool bar?
Regards
What I have tried:
I have tried so many things it is hard to remember them all now. I have read/tried every article/question I have found on here, Codeguru and StackOverflow. I have tried changing pane sizes and window sizes in CFrameWnd::PreCreateWindow(), CFrameWnd::OnCreateClient(), CFrameWnd::OnSize(). Nothing I find really addresses that I want the primary splitter window to have a fixed size that I calculate and how to adjust the frame window to have that client size.