| 76 | // CExt2Attribute message handlers |
| 77 | |
| 78 | BOOL CExt2Attribute::OnInitDialog() |
| 79 | { |
| 80 | int i = 0; |
| 81 | CString s; |
| 82 | |
| 83 | CDialog::OnInitDialog(); |
| 84 | |
| 85 | m_Codepage = m_EVP->Codepage; |
| 86 | m_bReadonly = m_EVP->bReadonly || m_bCdrom; |
| 87 | if (m_bCdrom) { |
| 88 | SET_WIN(IDC_READ_ONLY, FALSE); |
| 89 | } |
| 90 | |
| 91 | if (m_bCdrom) { |
| 92 | m_fixDrv = Ext2QueryMountPoint( |
| 93 | m_DevName.GetBuffer(MAX_PATH)); |
| 94 | } else { |
| 95 | m_fixDrv = Ext2QueryRegistryMountPoint( |
| 96 | m_DevName.GetBuffer(MAX_PATH)); |
| 97 | } |
| 98 | |
| 99 | if (m_fixDrv) { |
| 100 | m_bAutoMount = FALSE; |
| 101 | m_bFixMount = TRUE; |
| 102 | m_FixedLetter.Format("%c:", m_fixDrv); |
| 103 | } else { |
| 104 | m_FixedLetter = " "; |
| 105 | } |
| 106 | |
| 107 | if (m_EVP->Flags2 & EXT2_VPROP3_USERIDS) { |
| 108 | m_sUID.Format("%u", m_EVP->uid); |
| 109 | m_sGID.Format("%u", m_EVP->gid); |
| 110 | if (m_EVP->EIDS) { |
| 111 | m_sEUID.Format("%u", m_EVP->euid); |
| 112 | } |
| 113 | } |
| 114 | |
| 115 | if (m_EVP->DrvLetter) { |
| 116 | |
| 117 | m_autoDrv = m_EVP->DrvLetter & 0x7F; |
| 118 | if (m_autoDrv >= 'a' && m_autoDrv <= 'z') |
| 119 | m_autoDrv = (CHAR)toupper(m_autoDrv); |
| 120 | else if (m_autoDrv >= 'A' && m_autoDrv <= 'Z') { |
| 121 | } else { |
| 122 | m_autoDrv = 0; |
| 123 | } |
| 124 | if (m_autoDrv == 0) |
| 125 | m_AutoLetter.Format(" "); |
| 126 | else |
| 127 | m_AutoLetter.Format("%C:", m_autoDrv); |
| 128 | m_bAutoMount = !m_bFixMount; |
| 129 | } |
| 130 | |
| 131 | m_sPrefix = m_EVP->sHidingPrefix; |
| 132 | m_sSuffix = m_EVP->sHidingSuffix; |
| 133 | |
| 134 | CComboBox *cbCodepage = (CComboBox *)GetDlgItem(IDC_COMBO_CODEPAGE); |
| 135 | if (cbCodepage) { |
nothing calls this directly
no test coverage detected