Files
Work/mdiwin/VIEWCNTR.HPP
2024-08-07 09:16:27 -04:00

54 lines
1000 B
C++
Raw Permalink Blame History

This file contains invisible Unicode characters
This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
#ifndef _VIEWCONTAINER_HPP_
#define _VIEWCONTAINER_HPP_
#include <mdiwin/windows.hpp>
#include <mdiwin/view.hpp>
class ViewContainer
{
public:
ViewContainer(void);
ViewContainer(ViewWindow *lpViewWindow);
ViewContainer(const ViewContainer &someViewContainer);
~ViewContainer(void);
WORD operator==(const ViewContainer &someViewContainer)const;
ViewWindow *windowPtr(void);
private:
ViewWindow *mlpViewWindow;
};
inline
ViewContainer::ViewContainer(void)
: mlpViewWindow(0)
{
}
inline
ViewContainer::ViewContainer(ViewWindow *lpViewWindow)
: mlpViewWindow(lpViewWindow)
{
}
inline
ViewContainer::ViewContainer(const ViewContainer &someViewContainer)
: mlpViewWindow(someViewContainer.mlpViewWindow)
{
}
inline
ViewContainer::~ViewContainer()
{
}
inline
WORD ViewContainer::operator==(const ViewContainer &someViewContainer)const
{
return (mlpViewWindow==someViewContainer.mlpViewWindow?TRUE:FALSE);
}
inline
ViewWindow *ViewContainer::windowPtr(void)
{
return mlpViewWindow;
}
#endif