Reset the type dropdown when selecting another drive.

This commit is contained in:
Paul van Schayck 2005-01-19 16:59:48 +00:00 committed by Alexandre Julliard
parent 7ed3f41c98
commit 08255295e4

View file

@ -365,6 +365,8 @@ static void update_controls(HWND dialog)
type = current_drive->type;
if (type)
{
SendDlgItemMessage(dialog, IDC_COMBO_TYPE, CB_RESETCONTENT, 0, 0);
for (i = 0; i < sizeof(type_pairs) / sizeof(struct drive_typemap); i++)
{
SendDlgItemMessage(dialog, IDC_COMBO_TYPE, CB_ADDSTRING, 0, (LPARAM) type_pairs[i].sDesc);