On Windows message cracker, I could not use HANDLE_MSG macro in visual studio 2013.
The macro is defined like this(this could be incorrect, but it does not matter in this problem):
#define HANDLE_MSG(hwnd, message, fn) case (message): HANDLE_##message(hwnd, wParam, lParam, fn)
We expect that HANDLE_MSG(hwnd, WM_CREATE, OnCreate) become HANDLE_WM_CREATE(hwnd, wParam, lParam, OnCreate), but it expanded like this:
HANDLE_0x0001(hwnd, wParam, lParam, OnCreate)
And, obviously, there is no macro or function which is named 'HANDLE_0x0001', so an error occurs.
I want to use message cracker for readability.
Thank you in advance.
p.s. My mother tongue is not English, so my text may contain some grammatical mistakes. Thank you for reading this poor text.