newntui/discovermdi/src/dockablebrowser.cpp
//-----------------------------------------------------------------------------------------
// This function will run when the user select the "Reset Filter" item in the 
// pop-up menu. This function will remove any applied filter.
//-----------------------------------------------------------------------------------------
This function will run when the user select the "Reset Filter" item in the
pop-up menu. This function will remove any applied filter.
This function will run when the user select the " Reset Filter " item in the pop - up menu . This function will remove any applied filter .
void CDockableBrowser::OnResetFilter(void)  {
	CQueryResults* Results  = (CQueryResults *) GetDlgItem(IDC_RESULTS);
    Results->SetFilter("");
    Results->Update();
    CString sizeStr = ExecuteCommand(CString("size $DiscoverSelection"));
    CMainFrame* main=(CMainFrame*) AfxGetMainWnd();
    main->m_SelectionSize=atoi(sizeStr);
    DisplayInfoString();
}
void CDockableBrowser :: OnResetFilter ( void ) { CQueryResults * Results = ( CQueryResults * ) GetDlgItem ( IDC_RESULTS ) ; Results -> SetFilter ( " " ) ; Results -> Update ( ) ; CString sizeStr = ExecuteCommand ( CString ( " " ) ) ; CMainFrame * main = ( CMainFrame * ) AfxGetMainWnd ( ) ; main -> m_SelectionSize = atoi ( sizeStr ) ; DisplayInfoString ( ) ; }
This function will run when the user select the "Reset Filter" item in the
pop-up menu.
This function will run when the user select the " Reset Filter " item in the pop - up menu .