Awhile ago I created a Formview-based app without the status bar enabled. Today I went back and enabled it, and in so doing realized that there is no "separator" between it and the rest of the window.
After playing a bit, I saw if I check the "static edge" checkbox in the Extended Styles for the dialog that the formview is based on, I get a separator of sorts. But what I really want is a client edge. However, checking that checkbox has no effect.
The odd thing is I then used the MFC App Wizard to create a new FormView-based app (with no content) and by default, it has the client edge around the dialog in the window. But despite my best efforts, I cannot get it in my previously-created app.
I've tried changing PreCreateWindow in my CFormView-based class to this:
BOOL CWarrantsToolView::PreCreateWindow(CREATESTRUCT& cs)
// TODO:Modify the Window class [...]
// the CREATESTRUCT cs
cs.dwExStyle |= WS_EX_CLIENTEDGE;
This has no effect however.