Reset the type dropdown when selecting another drive.
This commit is contained in:
parent
7ed3f41c98
commit
08255295e4
|
@ -365,6 +365,8 @@ static void update_controls(HWND dialog)
|
||||||
type = current_drive->type;
|
type = current_drive->type;
|
||||||
if (type)
|
if (type)
|
||||||
{
|
{
|
||||||
|
SendDlgItemMessage(dialog, IDC_COMBO_TYPE, CB_RESETCONTENT, 0, 0);
|
||||||
|
|
||||||
for (i = 0; i < sizeof(type_pairs) / sizeof(struct drive_typemap); i++)
|
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);
|
SendDlgItemMessage(dialog, IDC_COMBO_TYPE, CB_ADDSTRING, 0, (LPARAM) type_pairs[i].sDesc);
|
||||||
|
|
Loading…
Reference in New Issue