83 lines
1.4 KiB
C++
83 lines
1.4 KiB
C++
#ifndef _IMAGELIST_DRAGINFO_HPP_
|
|
#define _IMAGELIST_DRAGINFO_HPP_
|
|
#ifndef _COMMON_WINDOWS_HPP_
|
|
#include <common/windows.hpp>
|
|
#endif
|
|
#ifndef _IMAGELIST_TREEVIEWITEM_HPP_
|
|
#include <imagelst/tvitem.hpp>
|
|
#endif
|
|
|
|
class DragInfo
|
|
{
|
|
public:
|
|
DragInfo(void);
|
|
DragInfo(const DragInfo &someDragInfo);
|
|
~DragInfo();
|
|
DragInfo &operator=(const DragInfo &someDragInfo);
|
|
WORD operator==(const DragInfo &someDragInfo)const;
|
|
WORD isInDrag(void)const;
|
|
void isInDrag(WORD isInDrag);
|
|
TreeViewItem dragItem(void)const;
|
|
void dragItem(const TreeViewItem &someTreeViewItem);
|
|
private:
|
|
WORD mIsInDrag;
|
|
TreeViewItem mDragItem;
|
|
};
|
|
|
|
inline
|
|
DragInfo::DragInfo(void)
|
|
: mIsInDrag(FALSE)
|
|
{
|
|
}
|
|
|
|
inline
|
|
DragInfo::DragInfo(const DragInfo &someDragInfo)
|
|
{
|
|
*this=someDragInfo;
|
|
}
|
|
|
|
inline
|
|
DragInfo::~DragInfo()
|
|
{
|
|
}
|
|
|
|
inline
|
|
DragInfo &DragInfo::operator=(const DragInfo &someDragInfo)
|
|
{
|
|
isInDrag(someDragInfo.isInDrag());
|
|
dragItem(someDragInfo.dragItem());
|
|
return *this;
|
|
}
|
|
|
|
inline
|
|
WORD DragInfo::operator==(const DragInfo &someDragInfo)const
|
|
{
|
|
return (isInDrag()==someDragInfo.isInDrag()&&
|
|
dragItem()==someDragInfo.dragItem());
|
|
}
|
|
|
|
inline
|
|
WORD DragInfo::isInDrag(void)const
|
|
{
|
|
return mIsInDrag;
|
|
}
|
|
|
|
inline
|
|
void DragInfo::isInDrag(WORD isInDrag)
|
|
{
|
|
mIsInDrag=isInDrag;
|
|
}
|
|
|
|
inline
|
|
TreeViewItem DragInfo::dragItem(void)const
|
|
{
|
|
return mDragItem;
|
|
}
|
|
|
|
inline
|
|
void DragInfo::dragItem(const TreeViewItem &someTreeViewItem)
|
|
{
|
|
mDragItem=someTreeViewItem;
|
|
}
|
|
#endif
|