MCPcopy Create free account
hub / github.com/bobranten/Ext4Fsd / OnInitDialog

Method OnInitDialog

Ext2Mgr/PartitionType.cpp:71–93  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

69}
70
71BOOL 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}

Callers

nothing calls this directly

Calls 1

PartitionStringFunction · 0.85

Tested by

no test coverage detected