void DialogAbout::TabLog::Create(HWND owner) { Tab::CreateTabWindow(15, 30, 370, 148, owner); // FIXME: Temporary hack. short buttonWidth = (short)_wtoi(GetString(ID_STR_NUM_BUTTONWIDTH)); static const ControlTemplate::Control s_Controls[] = { CT_LISTVIEW(Id_ItemsListView, 0, 0, 0, 368, 135, WS_VISIBLE | WS_TABSTOP | WS_BORDER | LVS_ICON | LVS_REPORT | LVS_SINGLESEL | LVS_NOSORTHEADER, 0), CT_CHECKBOX(Id_ErrorCheckBox, ID_STR_ERROR, 0, 139, 70, 9, WS_VISIBLE | WS_TABSTOP, 0), CT_CHECKBOX(Id_WarningCheckBox, ID_STR_WARNING, 70, 139, 70, 9, WS_VISIBLE | WS_TABSTOP, 0), CT_CHECKBOX(Id_NoticeCheckBox, ID_STR_NOTICE, 140, 139, 70, 9, WS_VISIBLE | WS_TABSTOP, 0), CT_CHECKBOX(Id_DebugCheckBox, ID_STR_DEBUG, 210, 139, 70, 9, WS_VISIBLE | WS_TABSTOP, 0), CT_BUTTON(Id_ClearButton, ID_STR_CLEAR, (368 - buttonWidth), 139, buttonWidth, 14, WS_VISIBLE | WS_TABSTOP, 0) }; CreateControls(s_Controls, _countof(s_Controls), c_Dialog->m_Font, GetString); }
void CDialogInstall::TabContents::Create(HWND owner) { Tab::CreateTabWindow(10, 50, 380, 135, owner); static const ControlTemplate::Control s_Controls[] = { CT_LABEL(-1, 6, 0, 3, 107, 9, WS_VISIBLE, 0), CT_COMBOBOX(Id_LanguageComboBox, 0, 107, 0, 222, 14, WS_VISIBLE | WS_TABSTOP | CBS_DROPDOWNLIST | CBS_SORT | WS_VSCROLL, 0), CT_LABEL(-1, 17, 0, 21, 107, 9, WS_VISIBLE, 0), CT_COMBOBOX(Id_InstallationTypeComboBox, 0, 107, 18, 222, 14, WS_VISIBLE | WS_TABSTOP | CBS_DROPDOWNLIST | WS_VSCROLL, 0), CT_LABEL(-1, 7, 0, 43, 107, 9, WS_VISIBLE, 0), CT_EDIT(Id_DestinationEdit, 14, 107, 40, 192, 14, WS_VISIBLE | WS_TABSTOP | ES_AUTOHSCROLL | ES_READONLY, WS_EX_CLIENTEDGE), CT_BUTTON(Id_DestinationBrowseButton, 9, 303, 40, 25, 14, WS_VISIBLE | WS_TABSTOP, 0), CT_CHECKBOX(Id_LaunchOnLoginCheckBox, 10, 0, 69, 250, 9, WS_VISIBLE | WS_TABSTOP, 0), }; CreateControls(s_Controls, _countof(s_Controls), c_Dialog->m_Font, GetString); HWND item = GetControl(Id_LanguageComboBox); ComboBox_AddString(item, L"English - English (United States)"); ComboBox_SetCurSel(item, 0); item = GetControl(Id_InstallationTypeComboBox); ComboBox_AddString(item, L"Standard 64-bit installation (reccomended)"); ComboBox_SetItemData(item, 0, MAKELPARAM(InstallType::Standard, InstallArch::X64)); ComboBox_AddString(item, L"Standard 32-bit installation"); ComboBox_SetItemData(item, 1, MAKELPARAM(InstallType::Standard, InstallArch::X32)); ComboBox_AddString(item, L"Portable 64-bit installation"); ComboBox_SetItemData(item, 2, MAKELPARAM(InstallType::Portable, InstallArch::X64)); ComboBox_AddString(item, L"Portable 32-bit installation"); ComboBox_SetItemData(item, 3, MAKELPARAM(InstallType::Portable, InstallArch::X32)); ComboBox_SetCurSel(item, 0); }