[ATL] Add CHAIN_MSG_MAP macro
authorGiannis Adamopoulos <gadamopoulos@reactos.org>
Mon, 23 Oct 2017 15:56:35 +0000 (18:56 +0300)
committerGiannis Adamopoulos <johnyadams@outlook.com>
Thu, 26 Oct 2017 09:37:08 +0000 (12:37 +0300)
sdk/lib/atl/atlwin.h

index 5540574..3f68348 100644 (file)
@@ -1827,6 +1827,12 @@ public:
             return TRUE;                                                                        \
     }
 
+#define CHAIN_MSG_MAP(theChainClass) \
+    { \
+        if (theChainClass::ProcessWindowMessage(hWnd, uMsg, wParam, lParam, lResult)) \
+            return TRUE; \
+    }
+
 #define DECLARE_WND_CLASS_EX(WndClassName, style, bkgnd)                                        \
 static ATL::CWndClassInfo& GetWndClassInfo()                                                    \
 {                                                                                                \