newntui/discovermdi/src/dockablebrowser.cpp
//-----------------------------------------------------------------------------------------
// This callback runs every time the user changes the selection in the groups window.
// It will fill the results window with the groups elements.
//-----------------------------------------------------------------------------------------
This callback runs every time the user changes the selection in the groups window.
It will fill the results window with the groups elements.
This callback runs every time the user changes the selection in the groups window . It will fill the results window with the groups elements .
void  CDockableBrowser::OnGroupChanged(LPCTSTR groupsList) {
   CCategoriesCombo* Category = (CCategoriesCombo *) GetDlgItem(IDC_CATEGORIES);
   Category->Unselect();
   CQueryResults* Results  = (CQueryResults *) GetDlgItem(IDC_RESULTS);
   Results->SetQuery("");
   Results->Update();
   ExecuteCommand(CString("set DiscoverGroups $DiscoverAll"));
   CString sizeStr = ExecuteCommand(CString("size $DiscoverSelection"));
   CMainFrame* main=(CMainFrame*) AfxGetMainWnd();
   main->m_SelectionSize=atoi(sizeStr);
   SaveHistory();
   DisplayInfoString();
}
void CDockableBrowser :: OnGroupChanged ( LPCTSTR groupsList ) { CCategoriesCombo * Category = ( CCategoriesCombo * ) GetDlgItem ( IDC_CATEGORIES ) ; Category -> Unselect ( ) ; CQueryResults * Results = ( CQueryResults * ) GetDlgItem ( IDC_RESULTS ) ; Results -> SetQuery ( " " ) ; Results -> Update ( ) ; ExecuteCommand ( CString ( " " ) ) ; CString sizeStr = ExecuteCommand ( CString ( " " ) ) ; CMainFrame * main = ( CMainFrame * ) AfxGetMainWnd ( ) ; main -> m_SelectionSize = atoi ( sizeStr ) ; SaveHistory ( ) ; DisplayInfoString ( ) ; }
This callback runs every time the user changes the selection in the groups window.
This callback runs every time the user changes the selection in the groups window .