newntui/discovermdi/src/dockablebrowser.cpp
//----------------------------------------------------------------------------
// This callback will run every time the user selects something in the
// results list. All user selection will go to the "DiscoverSelection"
// server variable. This callback will set m_SelectionAvailable flag to TRUE
// and all queries will use current selection instead of current project.
//----------------------------------------------------------------------------
This callback will run every time the user selects something in the
results list. All user selection will go to the "DiscoverSelection"
server variable. This callback will set m_SelectionAvailable flag to TRUE
and all queries will use current selection instead of current project.
This callback will run every time the user selects something in the results list . All user selection will go to the " DiscoverSelection " server variable . This callback will set m_SelectionAvailable flag to TRUE and all queries will use current selection instead of current project .
void CDockableBrowser::OnSelectionChanged(LPCTSTR pstrParams) {
   CQueriesCombo*      Query;
   Query=(CQueriesCombo*) GetDlgItem(IDC_QUERIES);
   Query->Clear();
   Query->SetSelection("DiscoverSelection");
   CString sizeStr = ExecuteCommand(CString("size $DiscoverSelection"));
   CMainFrame* main=(CMainFrame*) AfxGetMainWnd();
   main->m_SelectionSize=atoi(sizeStr);
   DisplayInfoString();
   main->m_wndStatusBar.SetPaneText(0,pstrParams);
}
void CDockableBrowser :: OnSelectionChanged ( LPCTSTR pstrParams ) { CQueriesCombo * Query ; Query = ( CQueriesCombo * ) GetDlgItem ( IDC_QUERIES ) ; Query -> Clear ( ) ; Query -> SetSelection ( " " ) ; CString sizeStr = ExecuteCommand ( CString ( " " ) ) ; CMainFrame * main = ( CMainFrame * ) AfxGetMainWnd ( ) ; main -> m_SelectionSize = atoi ( sizeStr ) ; DisplayInfoString ( ) ; main -> m_wndStatusBar . SetPaneText ( 0 , pstrParams ) ; }
This callback will run every time the user selects something in the
results list.
This callback will run every time the user selects something in the results list .