The WM_COMMAND message is as follows:

wNotifyCode = HIWORD(wParam); // notification code
wID = LOWORD(wParam); // item, control, or accelerator identifier
hwndCtl = (HWND) lParam; // handle of control

Is there ere a reason to look at the lParam since with the information in wParam, the code dispatch can be made?
Posted on 2003-07-27 12:45:36 by msmith
lParam in this case is only a shortcut. It saves you some code if you are going to use

mov eax,wParam
movzx eax,ax
invoke GetDlgItem,hWnd,eax

as it in fact gives that value (the window handle) immediately ;)

I, personally, have never seen anyone use it, but it's an option, given by MS :)
options are good :grin:

:edit: : removed awful C code - we talk 'bout asm :p
Posted on 2003-07-27 13:40:48 by Ultrano