With CNiGraph you're limited to the two provided options CNiGraph::FrameClassic and CNiGraph::Frame3D. You could get close to what you're looking for by setting CNiGraph::GraphFrameStyle to CNiGraph::FrameClassic and setting the CNiGraph::GraphFrameColor and CNiGraph::PlotAreaColor properties to the same value, but the borders will still look different.
If you're using the .NET WaveformGraph or ScatterGraph, the Border is an abstract base class and the provided styles include Dashed, Dotted, Etched, None, Raised, RaisedLite, Sunken, and SunkenLite. None of these will be exactly what you're looking for, either, but since Border is an abstract class, you can easily extend it with an implementation as you described, assign this custom implementation to the graph
's Border property, then set the graph's BackColor and PlotAreaColor to the same values. This would get you exactly what you're looking for. Please let me know if you're using one of the .NET graphs and I will post an example.
- Elton