Question
How to Capture Selection Change event in DropdownListWidget
Hi All,
I have a dropdownListWidget on dialog.I want to Capture the event when the selection string is changed.
I tried this in different way but lost.
in DialogObserver:AutoAttach
AttachToWidget(kIDCProfileDropDownListWidgetID,IID_IBOOLDROPDOWNLISTSTRINGCHANGED, panelControlData);
and in dialog::Update
if (theSelectedWidget == kIDCProfileDropDownListWidgetID )
{
//my code
}
this is not hitting at this point when i am changing selection of dropdownlist:
Then i created a observer class for this drop down but not working
myobserver::update
if ((protocol == IID_IBOOLDROPDOWNLISTSTRINGCHANGED) && (theChange == kListSelectionChangedMessage) )
{
//my code
}
where i am wrong or i am using wrong interface? guide me.
Thanks,
I have a dropdownListWidget on dialog.I want to Capture the event when the selection string is changed.
I tried this in different way but lost.
in DialogObserver:AutoAttach
AttachToWidget(kIDCProfileDropDownListWidgetID,IID_IBOOLDROPDOWNLISTSTRINGCHANGED, panelControlData);
and in dialog::Update
if (theSelectedWidget == kIDCProfileDropDownListWidgetID )
{
//my code
}
this is not hitting at this point when i am changing selection of dropdownlist:
Then i created a observer class for this drop down but not working
myobserver::update
if ((protocol == IID_IBOOLDROPDOWNLISTSTRINGCHANGED) && (theChange == kListSelectionChangedMessage) )
{
//my code
}
where i am wrong or i am using wrong interface? guide me.
Thanks,