newntui/discovermdi/src/dockablebrowser.cpp
//-----------------------------------------------------------------------------------------
// This function will run when the user select the "Select Filter..." item in the 
// pop-up menu. This function will show the filter wizard.
//-----------------------------------------------------------------------------------------
This function will run when the user select the "Select Filter..." item in the
pop-up menu. This function will show the filter wizard.
This function will run when the user select the " Select Filter ... " item in the pop - up menu . This function will show the filter wizard .
void CDockableBrowser::OnSetFilter(void) {
FilterSheet filter("Filter Setup",this);
	CQueryResults* Results  = (CQueryResults *) GetDlgItem(IDC_RESULTS);
	filter.SetApplyTaget(Results); 
	filter.DoModal();
    CString sizeStr = ExecuteCommand(CString("size $DiscoverSelection"));
    CMainFrame* main=(CMainFrame*) AfxGetMainWnd();
    main->m_SelectionSize=atoi(sizeStr);
    DisplayInfoString();
}
void CDockableBrowser :: OnSetFilter ( void ) { FilterSheet filter ( " " , this ) ; CQueryResults * Results = ( CQueryResults * ) GetDlgItem ( IDC_RESULTS ) ; filter . SetApplyTaget ( Results ) ; filter . DoModal ( ) ; CString sizeStr = ExecuteCommand ( CString ( " " ) ) ; CMainFrame * main = ( CMainFrame * ) AfxGetMainWnd ( ) ; main -> m_SelectionSize = atoi ( sizeStr ) ; DisplayInfoString ( ) ; }
This function will run when the user select the "Select Filter..." item in the
pop-up menu.
This function will run when the user select the " Select Filter ... " item in the pop - up menu .