// MyCon.cpp: implementation of the MyContainer class. // ////////////////////////////////////////////////////////////////////// #include "stdafx.h" #include "vector.h" #include "MyCon.h" #ifdef _DEBUG #undef THIS_FILE static char THIS_FILE[]=__FILE__; #define new DEBUG_NEW #endif ////////////////////////////////////////////////////////////////////// // Construction/Destruction ////////////////////////////////////////////////////////////////////// //MyContainer MyContainer::MyContainer() { } MyContainer::~MyContainer() { } L_INT MyContainer::ContainerCallBack(CONTAINEREVENTTYPE nEventType, L_VOID L_FAR * pEventData) { CString strMsg; L_INT nError; if (nEventType == CONTAINER_EVENT_TYPE_ERROR) { nError = (L_INT) pEventData; strMsg.Format(TEXT("Error: %d\n"), nError); AfxMessageBox(strMsg); } return LContainer::ContainerCallBack(nEventType, pEventData); } //MyToolbar MyToolbar::MyToolbar() { } MyToolbar::~MyToolbar() { } MyToolbar::ToolbarCallBack(L_UINT nButtonID, L_UINT32 dwData) { L_BOOL bVisible; if (nButtonID == -1) { bVisible = IsVisible(); } return LToolbar::ToolbarCallBack(nButtonID, dwData); }