Initial
This commit is contained in:
82
imagelst/DRAGINFO.HPP
Normal file
82
imagelst/DRAGINFO.HPP
Normal file
@@ -0,0 +1,82 @@
|
||||
#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
|
||||
Reference in New Issue
Block a user