SendMessage(hwnd, WM_COMMAND,
MAKEWPARAM( GetDlgCtrlID(hwnd), CBN_SELCHANGE ),
(LPARAM) hwndCombo);
I have SendMessage and GetDlgCtrlID working fine. What
can I do in C# to send the equivalent of WPARAM? If there
is another way to send CBN_SELCHANGE from C#, that would
be fine. CB_SETCURSEL changes the combobox selection, but
doesn't send the notification.
Thanks...Dan
int MAKEWPARAM(int l, int h)
{
return (l & 0xFFFF) | (h << 16);
}
Mattias
--
Mattias Sjögren [MVP] mattias @ mvps.org
http://www.msjogren.net/dotnet/
Please reply only to the newsgroup.