/*******************************************************************************
  Function Name  : OnOK
  Input(s)       : -
  Output         : -
  Functionality  : This will be called when ENTER key is pressed or Ok button is
                   selected. This will update the data from UI and will update
                   configuration module with the changes.
  Member of      : CMsgFilterConfigPage
  Author(s)      : Raja N
  Date Created   : 8.7.2005
  Modifications  :
*******************************************************************************/
void CMsgFilterConfigPage::OnOK()
{
    // Update List from UI
    vUpdateDataFromUI();
    ::SendMessage(m_hMsgWnd, WM_SET_FILTER_DETAILS, (WPARAM)&m_sFilterAppliedCan, (LPARAM)CAN);
    // Update configuration data
    //theApp.bSetData( MSG_DISPLAY_FILTER_DETAILS, (void *)&m_omFilterList );
    // Update Message Window about the chaneges
    //PostThreadMessage(GUI_dwThread_MsgDisp, TM_UPDATE_FILTERLIST, NULL, NULL );
    CPropertyPage::OnOK();
}
/*******************************************************************************
  Function Name  : OnBtnConfigure
  Input(s)       : -
  Output         : -
  Functionality  : To show popup filter configuration dialog
  Member of      : CMsgFilterConfigPage
  Author(s)      : Raja N
  Date Created   : 8.7.2005
  Modifications  :
*******************************************************************************/
void CMsgFilterConfigPage::OnBtnConfigure()
{
    // Update User Modifications
    vUpdateDataFromUI();
    CMainEntryList DestList;
    vPopulateMainSubList(DestList, m_psFilterConfigured, &m_sFilterAppliedCan);
    //Show dialog
    if (Filter_ShowSelDlg(this, &DestList) == IDOK)
    {
        vPopulateFilterApplied(m_psFilterConfigured, m_sFilterAppliedCan, DestList);
        vInitFilterUIList();
    }
}
/*******************************************************************************
  Function Name  : OnBtnConfigure
  Input(s)       : -
  Output         : -
  Functionality  : To show popup filter configuration dialog
  Member of      : CMsgFilterConfigPage
  Author(s)      : Raja N
  Date Created   : 8.7.2005
  Modifications  :
*******************************************************************************/
void CMsgFilterConfigPage::OnBtnConfigure()
{
    // Update User Modifications
    vUpdateDataFromUI();
    CMainEntryList DestList;

    populateFilterConfiguration(DestList);
    //Show dialog
    if (Filter_ShowSelDlg(this, &DestList) == IDOK)
    {
        updateFilterConfiguration(DestList);
        //vPopulateFilterApplied((SFILTERAPPLIED_CAN*)m_psFilterConfigured, m_sFilterAppliedCan, DestList);
        vInitFilterUIList();
    }
}
/*******************************************************************************
  Function Name  : OnOK
  Input(s)       : -
  Output         : -
  Functionality  : This will be called when ENTER key is pressed or Ok button is
                   selected. This will update the data from UI and will update
                   configuration module with the changes.
  Member of      : CMsgFilterConfigPage
  Author(s)      : Raja N
  Date Created   : 8.7.2005
  Modifications  :
*******************************************************************************/
void CMsgFilterConfigPage::OnOK()
{
    // Update List from UI
    vUpdateDataFromUI();
    CPropertyPage::OnOK();
}