Exemplo n.º 1
0
void __fastcall TfrmObjectList::sbRefreshListClick(TObject *Sender)
{
    if ((Scene->ObjCount()!=obj_count)||(cur_cls!=LTools->CurrentClassID()))
	    InitListBox();
    else
    	UpdateState();
}
Exemplo n.º 2
0
void __fastcall TfrmObjectList::FormShow(TObject *Sender)
{
    obj_count = 0;
    cur_cls = OBJCLASS_DUMMY;
	tvItems->FilteredVisibility = ((rgSO->ItemIndex==1)||(rgSO->ItemIndex==2));
    InitListBox();
	// check window position
    UI->CheckWindowPos(this);
}
Exemplo n.º 3
0
LRESULT CECardDialog::OnInitDialog(UINT /*uMsg*/, WPARAM /*wParam*/, LPARAM /*lParam*/, BOOL& bHandled)
{
	// list box
	m_ECardList.SubclassWindow(GetDlgItem(IDC_ECARD_LIST));
	m_ECardList.ModifyStyle(NULL, LVS_REPORT | LVS_NOCOLUMNHEADER | LVS_SINGLESEL);
	m_ECardList.SetExtendedListViewStyle(m_ECardList.GetExtendedListViewStyle()| LVS_EX_TRACKSELECT | LVS_EX_ONECLICKACTIVATE);
	InitListBox();
	PositionWindow();
	ShowWindow(SW_SHOW);
    return TRUE;
}
void CBrowserMusicWindow::AudioFileUpdate()
{
	iFileNameArray=iMainEngine.MusicPlayManageEngine().GetFileName();

	iCurrentTime.Zero();
	iCurrentTime.Append(_L("00:00"));

	iTotalTime.Zero();
	iTotalTime.Append(_L("00:00"));

	InitListBox();	
}
Exemplo n.º 5
0
LRESULT CToolbarsDlg::OnInitDialog(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled)
{
	m_list.SubclassWindow(GetDlgItem(IDC_TOOLBARS));

	InitListBox();

//	GetDlgControl(IDC_TOOLBARS, __uuidof(m_list), (void**)&m_list);

//	m_list->CheckStyle = 1;


//	IDispEventImpl<1, CToolbarsDlg, &DIID__IUIListControlEvents, &LIBID_UILib, 1, 0>::DispEventAdvise(m_list);

	return 1;  // Let the system set the focus
}
void CSearchResultView::DoActivateL()
{
	if(iTitleBar&&iAllPage>0&&iCurPage>0)
	{
		TBuf<50> titleBuf;
		titleBuf.Zero();
		titleBuf.Append(*iTitle);
		titleBuf.Append(_L("["));
		titleBuf.AppendNum(iCurPage);
		titleBuf.Append(_L("/"));
		titleBuf.AppendNum(iAllPage);
		titleBuf.Append(_L("]"));
		iTitleBar->SetTextL(titleBuf);
	}
	else
	{
		iTitleBar = iMainEngine.ControlFactory().CreateDefaultTitleBarL(*iTitle,this);
	}
	InitListBox();
}
BOOL CDlgPlayfairAnalysis::OnInitDialog() 
{
	CDialog::OnInitDialog();
	// m_listview in Report-Mode initialisieren

	m_Font.CreateFont(0,0,0,0,0,0,0,0,DEFAULT_CHARSET,OUT_RASTER_PRECIS,0,DEFAULT_QUALITY,FIXED_PITCH|FF_DONTCARE,NULL);
	m_ciphfeld.SetFont(&m_Font);
	m_txtfeld.SetFont(&m_Font);

	int colWidth = 55;  // Spaltenbreite in Pixel


	m_listview.InsertColumn( 0, " ", LVCFMT_LEFT, colWidth-30 , 0); // Buchstabe
	m_listview.InsertColumn( 1, "LROU", LVCFMT_LEFT, colWidth , 3); // 
	m_listview.InsertColumn( 2, "Nb?", LVCFMT_LEFT, colWidth , 3); // 
	LoadString(AfxGetInstanceHandle(),IDS_STRING_HORIZ,pc_str,STR_LAENGE_STRING_TABLE);
	m_listview.InsertColumn( 3, pc_str, LVCFMT_LEFT, colWidth+30 , 1); // 
	LoadString(AfxGetInstanceHandle(),IDS_STRING_VERT,pc_str,STR_LAENGE_STRING_TABLE);
	m_listview.InsertColumn( 4, pc_str, LVCFMT_LEFT, colWidth+30 , 2); // 
	m_listview.InsertColumn( 5, "row or col?", LVCFMT_LEFT, colWidth+60 , 3); // 
	m_listview.InsertColumn( 6, "Metrik", LVCFMT_LEFT, colWidth , 3); // 

	m_bHScroll = FALSE;
	m_iPos = 0;

	InitListBox();
	SetupListBox();
	SetupAnalysisWindow();

	// read window rects at dialog initialization
	GetWindowRect(&initialRectDialog);
	GetDlgItem(IDC_PLAYFAIR_LIST)->GetWindowRect(&initialRectListLetterInformation);
	GetDlgItem(IDC_LIST)->GetWindowRect(&initialRectFieldResult);
	GetDlgItem(IDC_MYTXT)->GetWindowRect(&initialRectFieldPlaintext);
	GetDlgItem(IDCANCEL)->GetWindowRect(&initialRectButtonCancel);
	GetDlgItem(IDC_SCROLLBAR1)->GetWindowRect(&initialRectScrollbar);

	return TRUE;  // return TRUE unless you set the focus to a control
	              // EXCEPTION: OCX-Eigenschaftenseiten sollten FALSE zurückgeben
}
Exemplo n.º 8
0
LRESULT CToolbarsDlg::OnNewToolbar(WORD wNotifyCode, WORD wID, HWND hWndCtl, BOOL& bHandled)
{
	CNewToolbarDlg dlg;
	dlg.m_name = L"New Toolbar";

	if (dlg.DoModal() == IDOK)
	{
		ATLASSERT(0);
#if 0
		CComPtr<IUIRegisteredDlg> rdlg;
		m_uiManager->RegisterDlg(CLSID_NULL, dlg.m_name, 0, &rdlg);
		if (rdlg)
		{
			::SendMessage(GetDlgItem(IDC_TOOLBARS), LB_RESETCONTENT, 0, 0);
			InitListBox();

			//rdlg->CreateDlg();
		}
#endif
	}

	return 0;
}
void CBrowserMusicWindow::ConstructL()
{
	ChangeButton();

	((CControlFactory&)iMainEngine.ControlFactory()).SetParentWindow(this);

	iFileNameArray=iMainEngine.MusicPlayManageEngine().GetFileName();

	InitImage();

	iMainEngine.MusicPlayManageEngine().SetAudioPlayNoticeWindow(this);

	//不允许弹出0*#界面
	iCanPopUpWindow=EFalse;

	iCurrentTime.Zero();
	iCurrentTime.Append(_L("00:00"));

	iTotalTime.Zero();
	iTotalTime.Append(_L("00:00"));

	InitListBox();
}
Exemplo n.º 10
0
void ListBox::InitListBox(uint8 lineNbr, int8 gap, Point offset, bool scrollable)
{
	InitListBox(lineNbr, gap, offset, scrollable, 0, 0);
}