Resizing a FormView to the size of the dialog displayed
-
Does anybody know a way to resize a CFormView derieved class, so that it exactly encloses the dialog resource and no scrollbar are visible? I tried it on CWnd::SetWindowPos(), but this does only change the size of the View and didn't affect the frame. -------------------------------------------------- "Pseudocode is code to demonstrate a concept, not designed to be run. Like certain Microsoft software. "
-
Does anybody know a way to resize a CFormView derieved class, so that it exactly encloses the dialog resource and no scrollbar are visible? I tried it on CWnd::SetWindowPos(), but this does only change the size of the View and didn't affect the frame. -------------------------------------------------- "Pseudocode is code to demonstrate a concept, not designed to be run. Like certain Microsoft software. "
I think you should control the size of parent frame to avoid scrollbars. Use WM_GETMINMAXINFO for that. Tomasz Sowinski -- http://www.shooltz.com