07-14-2005 03:09 AM
07-14-2005 04:53 AM
The most probable cause of this error is an incorrect value used as the panel handle in ClearListCtrl ().
Since the list control is named SndFiPanel_SelectedSoundFiles, it means that SelectedSoundFiles is the constant name of the list control on the panel while SndFiPanel is the constant name with which you have called the panel in the UIR editor. This is NOT the panel handle with which to address the panel and its controls: the panel handle is the value returned by LoadPanel () function.
That is, your code is to be modified as follows:
handle = LoadPanel (0, "file.uir", SndFiPanel); // Made elsewere in the program
07-14-2005 06:27 AM