Example #1
0
BOOL Cdlg_profiles::OnInitDialog()
{
	ETSLayoutDialog::OnInitDialog();
	update_controls();
	CreateRoot(VERTICAL)
		<< item(IDC_LIST)
		<< (pane(HORIZONTAL, ABSOLUTE_VERT)
			<< itemGrowing(HORIZONTAL)
			<< item(IDC_ACTIVATE, NORESIZE)
			<< item(IDC_INSERT, NORESIZE)
			<< item(IDC_EDIT, NORESIZE)
			<< item(IDC_DELETE, NORESIZE)
			<< item(IDOK, NORESIZE)
			<< item(IDCANCEL, NORESIZE)
			)
		;
	UpdateLayout();

	m_list.InsertColumn(0, "Name");
	m_list.InsertColumn(1, "Seeding Ratio", LVCFMT_RIGHT);
	m_list.InsertColumn(2, "Upload Rate", LVCFMT_RIGHT);
	m_list.InsertColumn(3, "Upload Slots", LVCFMT_RIGHT);
	m_list.InsertColumn(4, "Peer Limit", LVCFMT_RIGHT);
	m_list.InsertColumn(5, "Torrent Limit", LVCFMT_RIGHT);
	m_list.InsertColumn(6, "");
	for (t_entries::const_iterator i = m_entries.begin(); i != m_entries.end(); i++)
		m_list.InsertItemData(i->first);
	m_list.auto_size();
	return true;
}
Example #2
0
BOOL Cdlg_tracker::OnInitDialog()
{
	ETSLayoutDialog::OnInitDialog();
	CreateRoot(VERTICAL)
		<< (pane(HORIZONTAL, ABSOLUTE_VERT)
			<< item(IDC_TRACKER_STATIC, NORESIZE)
			<< item(IDC_TRACKER, ABSOLUTE_VERT)
			)
		<< (pane(HORIZONTAL, ABSOLUTE_VERT)
			<< item(IDC_USER_STATIC, NORESIZE)
			<< item(IDC_USER, ABSOLUTE_VERT)
			)
		<< (pane(HORIZONTAL, ABSOLUTE_VERT)
			<< item(IDC_PASS_STATIC, NORESIZE)
			<< item(IDC_PASS, ABSOLUTE_VERT)
			)
		<< (pane(HORIZONTAL, ABSOLUTE_VERT)
			<< itemGrowing(HORIZONTAL)
			<< item(IDOK, NORESIZE)
			<< item(IDCANCEL, NORESIZE)
			)
		;
	UpdateLayout();
	return true;
}
Example #3
0
BOOL CXSTE_edit_dlg::OnInitDialog() 
{
	CreateRoot(VERTICAL)
		<< item(IDC_NAME, ABSOLUTE_VERT)
		<< item(IDC_VALUE, GREEDY)
		<< item(IDC_EXTRA_VALUE, ABSOLUTE_VERT)
		<< (pane(HORIZONTAL, ABSOLUTE_VERT)
			<< itemGrowing(HORIZONTAL)
			<< item(IDOK, NORESIZE)
			<< item(IDCANCEL, NORESIZE)
			);
	ETSLayoutDialog::OnInitDialog();
	return true;
}
Example #4
0
BOOL CSearchStringDlg::OnInitDialog() 
{
	CreateRoot(VERTICAL)
		<< item(IDC_NAME, ABSOLUTE_VERT)
		<< item(IDC_LIST, GREEDY)
		<< (pane(HORIZONTAL, ABSOLUTE_VERT)
			<< itemGrowing(HORIZONTAL)
			<< item(IDOK, NORESIZE)
			<< item(IDCANCEL, NORESIZE)
			);
	ETSLayoutDialog::OnInitDialog();
	m_list.InsertColumn(0, "Name");
	m_list.InsertColumn(1, "Value");
	m_list.auto_size();
	return true;
}
Example #5
0
BOOL CUpgradeDlg::OnInitDialog()
{
    CDialog::OnInitDialog();

    // TODO: Add extra initialization here
    CreateRoot(VERTICAL)
            << item(IDC_STATIC1,NORESIZE)
            << item (IDC_EDDATE)
            <<	( pane(HORIZONTAL, ABSOLUTE_VERT )
                  << itemGrowing (HORIZONTAL)
                  << item( IDOK, NORESIZE)
                  << item( IDCANCEL, NORESIZE )
               );
    UpdateLayout();

    return TRUE;  // return TRUE unless you set the focus to a control
    // EXCEPTION: OCX Property Pages should return FALSE
}
Example #6
0
BOOL Cdlg_make_torrent::OnInitDialog()
{
	m_tracker = AfxGetApp()->GetProfileString(m_strRegStore, "tracker");
	m_trackers = AfxGetApp()->GetProfileString(m_strRegStore, "trackers");
	m_use_merkle = AfxGetApp()->GetProfileInt(m_strRegStore, "use_merkle", false);
	ETSLayoutDialog::OnInitDialog();
	CreateRoot(VERTICAL)
		<< (pane(HORIZONTAL, ABSOLUTE_VERT)
			<< item(IDC_NAME_STATIC, NORESIZE)
			<< item(IDC_NAME, GREEDY)
			)
		<< (pane(HORIZONTAL, ABSOLUTE_VERT)
			<< item(IDC_TRACKER_STATIC, NORESIZE)
			<< item(IDC_TRACKER, GREEDY)
			)
		<< (pane(HORIZONTAL, ABSOLUTE_VERT)
			<< item(IDC_TRACKERS_STATIC, NORESIZE)
			<< item(IDC_TRACKERS, GREEDY)
			)
		<< item(IDC_LIST, GREEDY)
		<< (pane(HORIZONTAL, ABSOLUTE_VERT)
			<< item(IDC_SEED_AFTER_MAKING, NORESIZE)
			<< item(IDC_USE_MERKLE, NORESIZE)
			<< itemGrowing(HORIZONTAL)
			<< item(IDC_LOAD_TRACKERS, NORESIZE)
			<< item(IDC_SAVE, NORESIZE)
			)
		;
	UpdateLayout();

	m_list.InsertColumn(0, "Name");
	m_list.InsertColumn(1, "Size", LVCFMT_RIGHT);
	m_list.InsertColumn(2, "");
	m_sort_column = 0;
	m_sort_reverse = false;

	for (t_map::const_iterator i = m_map.begin(); i != m_map.end(); i++)
		m_list.InsertItemData(i->first);
	post_insert();

	return true;
}
Example #7
0
BOOL Cdlg_peer_connect::OnInitDialog()
{
	ETSLayoutDialog::OnInitDialog();
	CreateRoot(VERTICAL)
		<< (pane(HORIZONTAL)
			<< (pane(VERTICAL)
				<< item(IDC_HOST_STATIC, NORESIZE)
				<< item(IDC_PORT_STATIC, NORESIZE)
				)
			<< (pane(VERTICAL)
				<< item(IDC_HOST, ABSOLUTE_VERT)
				<< item(IDC_PORT, ABSOLUTE_VERT)
				)
			)
		<< (pane(HORIZONTAL)
			<< itemGrowing(HORIZONTAL)
			<< item(IDOK, NORESIZE)
			<< item(IDCANCEL, NORESIZE)
			)
		;
	UpdateLayout();
	return true;
}