Re: richedit: Mask window id on WM_COMMAND notifications.

2009-01-02 Thread Dylan Smith
On Sat, Jan 3, 2009 at 12:37 AM, Dmitry Timoshkov wrote: > "Dylan Smith" wrote: > > - SendMessageA(GetParent(hWnd), WM_COMMAND, >> (nCode<<16)|GetWindowLongW(hWnd, GWLP_ID), (LPARAM)hWnd); >> + SendMessageA(GetParent(hWnd), WM_COMMAND, (nCode<<16)|(0x & >> GetWindowLongW(hWnd, GWLP_ID)), (

Re: richedit: Mask window id on WM_COMMAND notifications.

2009-01-02 Thread Dmitry Timoshkov
"Dylan Smith" wrote: > - SendMessageA(GetParent(hWnd), WM_COMMAND, (nCode<<16)|GetWindowLongW(hWnd, > GWLP_ID), (LPARAM)hWnd); > + SendMessageA(GetParent(hWnd), WM_COMMAND, (nCode<<16)|(0x & > GetWindowLongW(hWnd, GWLP_ID)), (LPARAM)hWnd); MAKEWPARAM and LOWORD are supposed to be used he