Click to See Complete Forum and Search --> : LBN_SELCHANGE not sent when manually changing list box selection


JasonD
October 24th, 2004, 07:44 PM
I noticed that the LBN_SELCHANGE list box notification is not sent when I manually change the selection with a LB_SETCURSEL message. Is this normal behaviour, or am I dreaming? It seems like a bug to me, but I am sure 1,000's of programmers have already noticed it, so I would think it would have been fixed if it were a bug.

I guess I would just like confirmation that this is standard behaviour...

Thanks,

MrViggy
October 25th, 2004, 12:16 PM
Well, according to the MSDN for 'LBN_SELCHANGE':
LBN_SELCHANGE Notification
------------------------------------------------
This notification message is not sent if the LB_SETCURSEL message changes the selection.
So, it looks like this is by design.

Viggy

JasonD
October 25th, 2004, 08:27 PM
Indeed. Since posting this, I have thought about a few cases in which you wouldn't want it to be sent, so I am sure they went through some of that during the design. Thanks for the reply...