| 69 | } |
| 70 | |
| 71 | BOOL CPartitionType::OnInitDialog() |
| 72 | { |
| 73 | CString str, type; |
| 74 | CDialog::OnInitDialog(); |
| 75 | |
| 76 | SET_TEXT(IDC_PARTITION_NAME, m_sDevice); |
| 77 | |
| 78 | CComboBox *cbList = (CComboBox *)GetDlgItem(IDC_PARTTION_TYPE_LIST); |
| 79 | for (unsigned int i=0; i < 0x100; i++) { |
| 80 | type = PartitionString(i); |
| 81 | str.Format("%2.2X ", i); |
| 82 | if (type.CompareNoCase("UNKNOWN")) { |
| 83 | str += type; |
| 84 | } |
| 85 | cbList->AddString(str); |
| 86 | } |
| 87 | |
| 88 | m_cPartType = m_Part->Entry->Mbr.PartitionType; |
| 89 | cbList->SetCurSel((int) m_cPartType); |
| 90 | |
| 91 | return TRUE; // return TRUE unless you set the focus to a control |
| 92 | // EXCEPTION: OCX Property Pages should return FALSE |
| 93 | } |
nothing calls this directly
no test coverage detected