00001 #ifndef NSFLEXMDICHILDWND_IMPLEMENTATION_FILE
00002 #define NSFLEXMDICHILDWND_IMPLEMENTATION_FILE
00003
00004
00005
00006
00007 #include "stdafx.h"
00008 #include "NSFlexMDIChildWnd.h"
00009 #include "NSViewsMessages.h"
00010
00011 IMPLEMENT_DYNCREATE(CNSFlexMDIChildWnd, CMDIChildWnd)
00012
00013 BEGIN_MESSAGE_MAP(CNSFlexMDIChildWnd, CMDIChildWnd)
00014
00015 ON_WM_GETMINMAXINFO()
00016
00017 ON_MESSAGE(WM_SETMINTRACKSIZE, OnSetMinTrackSize)
00018 END_MESSAGE_MAP()
00019
00020 CNSFlexMDIChildWnd::CNSFlexMDIChildWnd() :
00021 m_nMinTrackingWidth(0), m_nMinTrackingHeight(0)
00022 {
00023
00024 }
00025
00026 CNSFlexMDIChildWnd::~CNSFlexMDIChildWnd()
00027 {
00028
00029 }
00030
00031 void CNSFlexMDIChildWnd::OnGetMinMaxInfo(MINMAXINFO FAR* lpMMI)
00032 {
00033 CMDIChildWnd::OnGetMinMaxInfo(lpMMI);
00034
00035 lpMMI->ptMinTrackSize.x = m_nMinTrackingWidth;
00036 lpMMI->ptMinTrackSize.y = m_nMinTrackingHeight;
00037 }
00038
00039 LRESULT CNSFlexMDIChildWnd::OnSetMinTrackSize(WPARAM wParam, LPARAM lParam)
00040 {
00041 CRect rect;
00042
00043 GetWindowRect(rect);
00044 m_nMinTrackingWidth = rect.Width();
00045 m_nMinTrackingHeight = rect.Height();
00046
00047 return 1;
00048 }
00049
00050 #endif //NSFLEXMDICHILDWND_IMPLEMENTATION_FILE
00051