MAKEWPARAM
-
What's wrong with this? PostMessage(WM_COMMAND, MAKEWPARAM(IDC_LIST1, LBN_SELCHANGE), (LPARAM) m_hWnd); error C2064: term does not evaluate to a function MAKEWPARAM is causing this but I can't see something wrong with it. Thanks, Arjan.
-
What's wrong with this? PostMessage(WM_COMMAND, MAKEWPARAM(IDC_LIST1, LBN_SELCHANGE), (LPARAM) m_hWnd); error C2064: term does not evaluate to a function MAKEWPARAM is causing this but I can't see something wrong with it. Thanks, Arjan.
Still don't know why MAKEWPARAM is not working but fixed it with WPARAM wParam = (LBN_SELCHANGE << 16) + IDC_LIST1; PostMessage(WM_COMMAND, wParam, (LPARAM) m_hWnd); Arjan.
-
What's wrong with this? PostMessage(WM_COMMAND, MAKEWPARAM(IDC_LIST1, LBN_SELCHANGE), (LPARAM) m_hWnd); error C2064: term does not evaluate to a function MAKEWPARAM is causing this but I can't see something wrong with it. Thanks, Arjan.
You are not including the header file that defines that macro, or have some macros set that excludes the definition of it. Compiler flag /P is your friend.
-
You are not including the header file that defines that macro, or have some macros set that excludes the definition of it. Compiler flag /P is your friend.
use MAKELONG
-
use MAKELONG
I already tried that but it had the same effect I will check my compiler options now.