I created an SDI formview application, and I want the main window to always open to a fixed size, which is large enough to display the form.
And for it not to have scroll bars.
Currently when I run the application it always opens with horizontal and vertical scroll bars on the form.
I added the below line of code, to stop user from being able to resize the window, but I need logic to make the window open to required size.
BOOL CMainFrame::PreCreateWindow(CREATESTRUCT& cs)
cs.style &= ~WS_THICKFRAME;