| 727 | } |
| 728 | |
| 729 | void CObjectDialog::OnSelchangeComboObjType() { |
| 730 | // make sure to save the old item start value. |
| 731 | int old_obj_type = D3EditState.current_obj_type; |
| 732 | |
| 733 | D3EditState.current_obj_type = edit_object_types[((CComboBox *)GetDlgItem(IDC_COMBO_OBJTYPE))->GetCurSel()]; |
| 734 | InitObjIDComboBox((CComboBox *)GetDlgItem(IDC_COMBO_OBJID)); |
| 735 | ASSERT(GetCurrentIndex() != -1); |
| 736 | |
| 737 | // Draw picture of current item |
| 738 | DrawPicture(GetDlgItem(IDC_OBJ_PALETTE)); |
| 739 | } |
| 740 | |
| 741 | void CObjectDialog::OnSelchangeComboObjID() { |
| 742 | CComboBox *box = (CComboBox *)GetDlgItem(IDC_COMBO_OBJID); |
nothing calls this directly
no test coverage detected