| 1148 | } |
| 1149 | |
| 1150 | void CMainFrame::InitKeypadDialog() { |
| 1151 | CTabCtrl *tab_ctrl; |
| 1152 | TC_ITEM tc_item; |
| 1153 | |
| 1154 | m_KeypadTabCtrl = tab_ctrl = (CTabCtrl *)m_wndKeypadBar.GetDlgItem(IDC_KEYPADS); |
| 1155 | |
| 1156 | // Add tabs to tabcontrol in the keypad dialog bar. |
| 1157 | tc_item.mask = TCIF_TEXT; |
| 1158 | tc_item.pszText = "Texture"; |
| 1159 | tc_item.cchTextMax = lstrlen(tc_item.pszText) + 1; |
| 1160 | tab_ctrl->InsertItem(TAB_TEXTURE_KEYPAD, &tc_item); |
| 1161 | |
| 1162 | tc_item.mask = TCIF_TEXT; |
| 1163 | tc_item.pszText = "Megacell"; |
| 1164 | tc_item.cchTextMax = lstrlen(tc_item.pszText) + 1; |
| 1165 | tab_ctrl->InsertItem(TAB_MEGACELL_KEYPAD, &tc_item); |
| 1166 | |
| 1167 | tc_item.mask = TCIF_TEXT; |
| 1168 | tc_item.pszText = "Terrain"; |
| 1169 | tc_item.cchTextMax = lstrlen(tc_item.pszText) + 1; |
| 1170 | tab_ctrl->InsertItem(TAB_TERRAIN_KEYPAD, &tc_item); |
| 1171 | |
| 1172 | tc_item.mask = TCIF_TEXT; |
| 1173 | tc_item.pszText = "Object"; |
| 1174 | tc_item.cchTextMax = lstrlen(tc_item.pszText) + 1; |
| 1175 | tab_ctrl->InsertItem(TAB_OBJECTS_KEYPAD, &tc_item); |
| 1176 | |
| 1177 | tc_item.mask = TCIF_TEXT; |
| 1178 | tc_item.pszText = "Room"; |
| 1179 | tc_item.cchTextMax = lstrlen(tc_item.pszText) + 1; |
| 1180 | tab_ctrl->InsertItem(TAB_ROOM_KEYPAD, &tc_item); |
| 1181 | |
| 1182 | tc_item.mask = TCIF_TEXT; |
| 1183 | tc_item.pszText = "Doorway"; |
| 1184 | tc_item.cchTextMax = lstrlen(tc_item.pszText) + 1; |
| 1185 | tab_ctrl->InsertItem(TAB_DOORWAY_KEYPAD, &tc_item); |
| 1186 | |
| 1187 | tc_item.mask = TCIF_TEXT; |
| 1188 | tc_item.pszText = "Trigger"; |
| 1189 | tc_item.cchTextMax = lstrlen(tc_item.pszText) + 1; |
| 1190 | tab_ctrl->InsertItem(TAB_TRIGGER_KEYPAD, &tc_item); |
| 1191 | |
| 1192 | tc_item.mask = TCIF_TEXT; |
| 1193 | tc_item.pszText = "Lighting"; |
| 1194 | tc_item.cchTextMax = lstrlen(tc_item.pszText) + 1; |
| 1195 | tab_ctrl->InsertItem(TAB_LIGHTING_KEYPAD, &tc_item); |
| 1196 | |
| 1197 | tc_item.mask = TCIF_TEXT; |
| 1198 | tc_item.pszText = "Paths"; |
| 1199 | tc_item.cchTextMax = lstrlen(tc_item.pszText) + 1; |
| 1200 | tab_ctrl->InsertItem(TAB_PATHS_KEYPAD, &tc_item); |
| 1201 | |
| 1202 | tc_item.mask = TCIF_TEXT; |
| 1203 | tc_item.pszText = "Level"; |
| 1204 | tc_item.cchTextMax = lstrlen(tc_item.pszText) + 1; |
| 1205 | tab_ctrl->InsertItem(TAB_LEVEL_KEYPAD, &tc_item); |
| 1206 | |
| 1207 | tc_item.mask = TCIF_TEXT; |
nothing calls this directly
no test coverage detected