void CBCGPChartStockSeries::SetCustomStockValueCallback | ( | BCGPCHART_STOCK_CALLBACK | pfn, |
BOOL | bRedraw = FALSE |
||
) |
Sets a callback to calculate custom stock values.
Set a callback to calculate custom stock values if you need to display a line chart based on custom stock values (calculated at the application level from the real stock data).
It can be useful if you do not derive a class from CBCGPChartStockSeries, but have to display the stock chart as a line based on custom values. The callback implementation may look like this:
pfn | A pointer to a callback. |
bRedraw | TRUE - redraw the chart immediately |