summaryrefslogtreecommitdiff
path: root/src/T2DLL/LAttachment.h
blob: a35262868c1b4f3e2a1b706160068bebbc5d2adf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#pragma once
#include "common.h"

class AFX_CLASS_EXPORT LAttachment {
public:
	LAttachment(unsigned int message = 0, BOOL executeHost = true);
	virtual ~LAttachment();

    unsigned int GetMessage() const { return mMessage; }
	virtual void SetMessage(unsigned int v) { mMessage = v; }

    BOOL GetExecuteHost() const { return mExecuteHost; }
	virtual void SetExecuteHost(BOOL v);

	virtual void SetOwnerHost(LAttachable* v) { mOwnerHost = v; }
    LAttachable* GetOwnerHost() const { return mOwnerHost; }

	virtual BOOL Execute(unsigned int message, void* data);

protected:
	virtual void ExecuteSelf(unsigned int message, void*);

	LAttachable *mOwnerHost;
	unsigned int mMessage;
	BOOL mExecuteHost;
};