newntui/discovermdi/src/dockablebrowser.cpp
//----------------------------------------------------------------------------------------
// Set information string as a filter button title
//----------------------------------------------------------------------------------------
Set information string as a filter button title
Set information string as a filter button title
void CDockableBrowser::DisplayInfoString(void) {
CString info;
    FillKindList();
	CQueryResults* Results  = (CQueryResults *) GetDlgItem(IDC_RESULTS);
	info.Format("%d from %d, %d selected",Results->FilteredAmount(),
		                                  Results->RowAmount(),
					                      Results->AmountSelected());
	CButton* FilterBtn  = (CButton *)GetDlgItem(IDC_FILTER);
	FilterBtn->SetWindowText(info);
}
void CDockableBrowser :: DisplayInfoString ( void ) { CString info ; FillKindList ( ) ; CQueryResults * Results = ( CQueryResults * ) GetDlgItem ( IDC_RESULTS ) ; info . Format ( " " , Results -> FilteredAmount ( ) , Results -> RowAmount ( ) , Results -> AmountSelected ( ) ) ; CButton * FilterBtn = ( CButton * ) GetDlgItem ( IDC_FILTER ) ; FilterBtn -> SetWindowText ( info ) ; }
Set information string as a filter button title
Set information string as a filter button title