void CTxFunctionsView::OnButtonApply() { SetUpdateBtnChanges(); //save the values of delay between blocks UINT unTimerVal; CString csTimerVal; CTxMsgBlocksView* pomBlockView = NULL; pomBlockView = (CTxMsgBlocksView*)pomGetBlocksViewPointer(); if(pomBlockView == NULL) { return; } //if(pomBlockView) //{ // pomBlockView->GetDlgItemText(IDC_EDIT_BLOCK_TRG_TIMER_VAL, csTimerVal); // if(((CButton*) pomBlockView->GetDlgItem(IDC_CHECK_MSG_BLOCK_DELAY))->GetCheck() == BST_CHECKED) // { // CTxWndDataStore::ouGetTxWndDataStoreObj().m_bDelayBetweenMsgBlocks = true; // CTxMsgManager::s_bDelayBetweenBlocksOnly = true; // pomBlockView->m_bDelayBtnBlocks = true; // } // else // { // CTxWndDataStore::ouGetTxWndDataStoreObj().m_bDelayBetweenMsgBlocks = false; // CTxMsgManager::s_bDelayBetweenBlocksOnly = false; // pomBlockView->m_bDelayBtnBlocks = false; // } //} unTimerVal = (UINT)atol(csTimerVal.GetBuffer(0)); CTxWndDataStore::ouGetTxWndDataStoreObj().m_unTimeDelayBtwnMsgBlocks = unTimerVal; CTxMsgManager::s_unTimeDelayBtnMsgBlocks = unTimerVal; this->SetFocus(); // The following block of code can be enabled if message to be transmitted in following scenario : // Message transmission is ON, Empty block is present. Added a message to the // empty block and Update button is selected /*if(CTxMsgManager::s_TxFlags.nGetFlagStatus(TX_SENDMESG)) { CTxMsgBlocksView* pBlocksView = (CTxMsgBlocksView*)pomGetBlocksViewPointer(); PSMSGBLOCKLIST psMsgCurrentBlock = NULL; if (NULL != pomBlockView) { psMsgCurrentBlock = pomBlockView->psGetMsgBlockPointer( pomBlockView->m_nSelectedMsgBlockIndex, pomBlockView->m_psMsgBlockList ); // If no msg is present at the start of msg transmission and if the // user adds a one or more msg and selects the update button, then send the new msg if(psMsgCurrentBlock->m_unMsgCount >= 1) { CTxMsgManager::s_podGetTxMsgManager()->vStartTransmission(0); } } }*/ }
void CTxFunctionsView::vAccessButtonApply() { SetUpdateBtnChanges(); }