From 6ec9d18f1b2c3d370190560e4cb5ba0997a2e778 Mon Sep 17 00:00:00 2001 From: Robin Dunn Date: Mon, 7 Jun 1999 21:29:10 +0000 Subject: [PATCH] Added GetMessage to those that are undef'ed and reimplemented as inlines for wxMSW. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2703 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- include/wx/msw/winundef.h | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/include/wx/msw/winundef.h b/include/wx/msw/winundef.h index 3d657f4c21..25bcb7d67e 100644 --- a/include/wx/msw/winundef.h +++ b/include/wx/msw/winundef.h @@ -144,7 +144,20 @@ return GetObjectW(h, i, buffer); #else return GetObjectA(h, i, buffer); - #endif + #endif + } +#endif + + +#ifdef GetMessage + #undef GetMessage + inline int GetMessage(LPMSG lpMsg, HWND hWnd, UINT wMsgFilterMin, UINT wMsgFilterMax) + { + #ifdef _UNICODE + return GetMessageW(lpMsg, hWnd, wMsgFilterMin, wMsgFilterMax); + #else + return GetMessageA(lpMsg, hWnd, wMsgFilterMin, wMsgFilterMax); + #endif } #endif