Is it possible to use MFC's message mapping macros without Microsoft's extensions to the C++ language?

I'm having some troubles, for example with Clang:

Code:
error: call to non-static member function without an object argument
  ON_MESSAGE(WM_UPDATEUISTATE, OnUpdateUIState)
                               ^
C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\VC\Tools\MSVC\14.11.25503\atlmfc\include\afxmsg_.h
expanded from macro 'ON_MESSAGE'
                (memberFxn)) },
                 ^