// BncFrm.cpp // // This is a part of the Microsoft Foundation Classes C++ library. // Copyright (C) 1992-1998 Microsoft Corporation // All rights reserved. // // This source code is only intended as a supplement to the // Microsoft Foundation Classes Reference and related // electronic documentation provided with the library. // See these sources for detailed information regarding the // Microsoft Foundation Classes product. #include "stdafx.h" #include "resource.h" #include "BncFrm.h" #ifdef _DEBUG # define new DEBUG_NEW # undef THIS_FILE static char THIS_FILE[] = __FILE__; #endif ///////////////////////////////////////////////////////////////////////////// // CBounceFrame IMPLEMENT_DYNCREATE(CBounceFrame, CChildWnd) CBounceFrame::CBounceFrame() { } CBounceFrame::~CBounceFrame() { } BEGIN_MESSAGE_MAP(CBounceFrame, CChildWnd) //{{AFX_MSG_MAP(CBounceFrame) ON_COMMAND(ID_TEAROFF_CLOSE_ITEM, OnCloseItem) //}}AFX_MSG_MAP END_MESSAGE_MAP() ///////////////////////////////////////////////////////////////////////////// // CBounceFrame message handlers BOOL CBounceFrame::PreCreateWindow(CREATESTRUCT& cs) { return CMDIChildWnd::PreCreateWindow(cs); } BOOL CBounceFrame::Create(LPCTSTR lpszClassName, LPCTSTR lpszWindowName, DWORD dwStyle, const RECT& rect, CMDIFrameWnd* pParentWnd, CCreateContext* pContext) { return CMDIChildWnd::Create(lpszClassName, lpszWindowName, dwStyle, rect, pParentWnd, pContext); } void CBounceFrame::OnCloseItem() { XTP_SAFE_CALL2(GetMDIFrame(), GetActiveFrame(), SendMessage(WM_CLOSE, 0, 0)); }