My dialog procedure:
INT_PTR CALLBACK DlgProc(HWND hDlg, UINT iMessage, WPARAM wParam, LPARAM lParam)
{
INT_PTR result = TRUE;
switch(iMessage)
{
case WM_NOTIFY:
switch (((LPNMHDR)lParam)->idFrom)
{
case ID_xxx:
// process notify from control ID_xxx
break;
case ID_yyy:
// process notify from control ID_yyy
break;
default:
result = FALSE;
}
default:
result = FALSE;
}
return result;
}
In case the notification is from a control that I don't use, or suppose I am not interested in the LVN_ITEMCHANGED
notification of a particular listcontrol, I would set result
to FALSE
, causing the default windows procedure to be called.
Do I always have to do this? Is it a problem if I don't?