controlling window size during Cascade
C / C++ / MFC
1
Posts
1
Posters
0
Views
1
Watching
-
Hi all, I'm trying to figure out how to control the size of a CView-derived window during a cascade operation (i.e. when the Cascade menu item in the View menu of a MFC-based MDI app is selected). I've looked into having my CView override various message handlers( WM_WINDOWPOSCHANGING, WM_GETMINMAXINFO, WM_NCCALCSIZE, and WM_WINDOWPOSCHANGED), but none of those messages seem to contain enough information for my CView to know whether it is being cascaded, or just resized in another way( maximized, restored, resized by the user, etc.). Do I need to look into overriding the way an MFC app handles the Cascade command, and if so where would I start on that? Any advice or suggestions greatly appreciated. Cheers, Pete