CLeashFrame
void CLeashFrame::ActivateFrame(int nCmdShow)
const CRect CLeashFrame::s_rectDefault(0, 0, 740, 400); // static public (l,t,r,b)
const char CLeashFrame::s_profileHeading[] = "Window size";
const char CLeashFrame::s_profileRect[] = "Rect";
const char CLeashFrame::s_profileIcon[] = "icon";
const char CLeashFrame::s_profileMax[] = "max";
const char CLeashFrame::s_profileTool[] = "tool";
const char CLeashFrame::s_profileStatus[] = "status";
IMPLEMENT_DYNAMIC(CLeashFrame, CFrameWndEx)
BEGIN_MESSAGE_MAP(CLeashFrame, CFrameWndEx)
CLeashFrame::CLeashFrame()
CLeashFrame::~CLeashFrame()
void CLeashFrame::OnDestroy()
class CLeashFrame : public CFrameWndEx
DECLARE_DYNAMIC(CLeashFrame)
CLeashFrame();
~CLeashFrame();
if (CLeashFrame::OnCreate(lpCreateStruct) == -1)
return CLeashFrame::PreTranslateMessage(pMsg);
CString strText = AfxGetApp()->GetProfileString(CLeashFrame::s_profileHeading,
CLeashFrame::s_profileRect);
cs.cx = CLeashFrame::s_rectDefault.right;
cs.cy = CLeashFrame::s_rectDefault.bottom;
cs.cx = CLeashFrame::s_rectDefault.right;
cs.cy = CLeashFrame::s_rectDefault.bottom;
if (!CLeashFrame::PreCreateWindow(cs))
CLeashFrame::AssertValid();
CLeashFrame::Dump(dc);
wndpl.rcNormalPosition = CLeashFrame::s_rectDefault;
CLeashFrame::OnSizing(fwSide, pRect);
CLeashFrame::RecalcLayout(bNotify);
CLeashFrame::OnGetMinMaxInfo(lpMMI);
CLeashFrame::OnClose();
return CLeashFrame::WindowProc(message, wParam, lParam);
IMPLEMENT_DYNCREATE(CMainFrame, CLeashFrame)
BEGIN_MESSAGE_MAP(CMainFrame, CLeashFrame)
class CMainFrame : public CLeashFrame