I have overlooked that id is 3rd argument of the function
And it is defined like here
Which is called from inside this function:
Have you idea what does the LOWORD(wParam) function and HOWORD(hParam) function do?
Code:
bool Sheet_HandleCommand(HWND sheet, WORD code, WORD id, HWND control)
Code:
Sheet_HandleCommand(sheet, HIWORD(wParam), LOWORD(wParam), (HWND)lParam))
Code:
// MainDlgProc: The DialogProc for the main property sheet window.
#define CALLPROC() CallWindowProc((WNDPROC)pproc, sheet, msg, wParam, lParam)
INT_PTR CALLBACK MainDlgProc(HWND sheet, UINT msg, WPARAM wParam, LPARAM lParam)
Last edited: