I'm using VC++ 6.0 on windows 2000.
I've made a dialog with a CCheckListBox in it.
I want to get informed each time a check value is changed.
As there is no built-in OnChecked() method, I've overriden
OnCommand(WPARAM wParam, LPARAM lParam).
The method is correctly called when I click on my CCheckListBox control.
I began to filter the messages with LOWORD(wParam).
But I've found that OnCommand is sometimes called for another reason.
In the de *** I've found that there these values :
4 on initialization
40 when clicked
5 when the CCheckListBox is modified by code associated to another
4 and then 40, sometimes, not sure exactly when, but not related to a
Well, I now filter the message for LOWORD(wParam) == ID_MY_CONTROL
AND HIWORD(wParam) == 40.
I've not found documentation about these values of HIWORD(wParam).
Where could I find that ?
MSDN only informs me about values 0 and 1.
If there is no documentation, perhaps somewhere in a piece of source
code I could find some useful #defines ?
Is the way I filter messages correct (in the MFC way I mean) ?
And isn't there a better way to get informed immediately of changes
of checks in a CCheckedListBox control (it works, but looks...ugly) ?