summaryrefslogtreecommitdiff
path: root/xfa/fwl/core/cfwl_message.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'xfa/fwl/core/cfwl_message.cpp')
-rw-r--r--xfa/fwl/core/cfwl_message.cpp19
1 files changed, 13 insertions, 6 deletions
diff --git a/xfa/fwl/core/cfwl_message.cpp b/xfa/fwl/core/cfwl_message.cpp
index e233900d6e..b20cf0e6a1 100644
--- a/xfa/fwl/core/cfwl_message.cpp
+++ b/xfa/fwl/core/cfwl_message.cpp
@@ -6,15 +6,22 @@
#include "xfa/fwl/core/cfwl_message.h"
-CFWL_Message::CFWL_Message()
- : m_pSrcTarget(nullptr), m_pDstTarget(nullptr), m_dwExtend(0) {}
+CFWL_Message::CFWL_Message(CFWL_Message::Type type)
+ : CFWL_Message(type, nullptr, nullptr) {}
+
+CFWL_Message::CFWL_Message(Type type, CFWL_Widget* pSrcTarget)
+ : CFWL_Message(type, pSrcTarget, nullptr) {}
+
+CFWL_Message::CFWL_Message(Type type,
+ CFWL_Widget* pSrcTarget,
+ CFWL_Widget* pDstTarget)
+ : m_pSrcTarget(pSrcTarget),
+ m_pDstTarget(pDstTarget),
+ m_dwExtend(0),
+ m_type(type) {}
CFWL_Message::~CFWL_Message() {}
std::unique_ptr<CFWL_Message> CFWL_Message::Clone() {
return nullptr;
}
-
-CFWL_MessageType CFWL_Message::GetClassID() const {
- return CFWL_MessageType::None;
-}