blob: 4eee56adf5f4049318fb65c3670c1e7543c1009a (
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
27
28
|
#ifndef T2DLL_LATTACHMENT_H
#define T2DLL_LATTACHMENT_H
#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;
};
#endif
|