any experience with ON_EVENT_RANGE?
is there any tricks in using ON_EVENT_RANGE ? for example, if i have a dialog box with 2 activex controls, i can do
ON_EVENT(CTestView, 1113, 3 /* Change */, OnChangeTest, VTS_NONE)
ON_EVENT(CTestView, 1114, 3 /* Change */, OnChangeTest, VTS_NONE)
but
ON_EVENT_RANGE(CTestView, 1113,1114, 3 /* Change */, OnChangeTest, VTS_NONE)
doesn't seem to work.
thanks in advance
heidi
Re: any experience with ON_EVENT_RANGE?
The function that gets called by ON_EVENT_RANGE takes an additional parameter that contains the ID of the control that fired the event. You should change your ON_EVENT_RANGE to the following:
ON_EVENT_RANGE(CTestView, 1113, 1114, 3, OnChangeTest, VTS_I4)
You will also need to modify the OnChangeTest method to take in a long.
Hope this helps,
Brad