CComboBox myComboBox; myComboBox.ResetContent();
CComboBox myComboBox; myComboBox.SendMessage(CB_RESETCONTENT, 0, 0);This code creates a new empty CComboBox object named myComboBox and sends a CB_RESETCONTENT message to the combo box to reset its content. In both examples, the ResetContent function is called to clear the contents of the combo box. The package library used in these examples is the MFC (Microsoft Foundation Class) and ATL (Active Template Library) libraries which are provided by Microsoft for use with C++ programming language to create Windows-based applications.