// ThreadMessage threadMessage(ThreadMessage::TM_USER,FooStart,0L); // if(!mhDisplay||!mlpLedDisplay)return; // if(mCounter>999)mCounter=0; // mlpLedDisplay->setNumber(mCounter++); // postMessage(threadMessage); #if 0 void CalcDlg::generateFlows(void) { Block cashFlows; PurePassThru passThru; CashFlow cashFlow; String trmString; String prnString; String cpnString; size_t numFlows; getText(CALC_TERM,trmString); getText(CALC_PRINCIPAL,prnString); getText(CALC_COUPON,cpnString); if(trmString.isNull()||prnString.isNull()||cpnString.isNull()){::MessageBeep(0);return;} passThru.issBal(::atof((LPSTR)prnString)); passThru.wac(::atof((LPSTR)cpnString)); passThru.coupon(::atof((LPSTR)cpnString)); passThru.wam(::atol((LPSTR)trmString)); passThru.origTerm(::atol((LPSTR)trmString)); passThru.psa(0.00); if(mPrePay.amount())cashFlow.generateCashFlows(passThru,cashFlows,mPrePay); else cashFlow.generateCashFlows(passThru,cashFlows); numFlows=cashFlows.size(); mlpCalcSheet->clearData(); mlpCalcSheet->setCurrentCell(1,1); CursorControl cursorControl; cursorControl.waitCursor(TRUE); for(short itemIndex=0;itemIndex itemStrings; cashFlows[itemIndex].itemStrings(itemStrings); mlpCalcSheet->setCellData(itemIndex,IssBal,itemStrings[IssBal]); mlpCalcSheet->setCellData(itemIndex,SMM,itemStrings[SMM]); mlpCalcSheet->setCellData(itemIndex,MtgPay,itemStrings[MtgPay]); mlpCalcSheet->setCellData(itemIndex,NetIntPay,itemStrings[NetIntPay]); mlpCalcSheet->setCellData(itemIndex,GrossInt,itemStrings[GrossInt]); mlpCalcSheet->setCellData(itemIndex,SchPrn,itemStrings[SchPrn]); mlpCalcSheet->setCellData(itemIndex,Prepay,itemStrings[Prepay]); mlpCalcSheet->setCellData(itemIndex,TotPrin,itemStrings[TotPrin]); mlpCalcSheet->setCellData(itemIndex,Cashflow,itemStrings[Cashflow]); mlpCalcSheet->setCellData(itemIndex,Factor,itemStrings[Factor]); } cursorControl.waitCursor(FALSE); ::SetFocus(mlpCalcSheet->getHandle()); } #endif void GraphWindow::showFlows(Block &pureCashFlows,PureVector &vectorInt) { // PureVector vectorInt; PureVector scrnInt; int widthAdjust(5); int xPoint; // vectorInt.size(pureCashFlows.size()); // for(int itemIndex=0;itemIndex