It's been a while since I used a
CFormView
but I reckon MFC creates the view, then fits it to the frame, and when the frame itself resizes, it resizes the view again. You could try alternatives like handling the
WM_SIZE
of the containing frame window, or waiting for a window activate message (forgot the exact message) and only then handling the
WM_SIZE
messages.
BTW you might want to look at Paolo Messina's excellent ResizableLib library here on Code Project:
ResizableLib[
^]
It includes a class called
CResizableFormView
which will do what you want.