<p>What's the best way to go about creating a vertical and horizontal ruler bars in an SDI app?  Would you make it part of the frame or the view?  Derive it from CControlBar, or is there a better method?</p>

<p>The vertical ruler must also be docked to a pane and not the frame.</p>

<p>To make it a little clearer as to what I'm after, imagine the vertical ruler in the Dialog Editor in Visual Studio (MFC only). It gets repositioned whenever the tree view is resized.</p>

I would
not
use control bars. I have no good reason other then (IMOHO) are difficult to get to do what you want - if what you want if something other than a docking toolbar.
I would just draw them directly on the View window using GDI calls.
I guess I
might
think about making each ruler its own window, and draw the rulers on their own window. I would then create these two CWnd derived classes in the view and position as child windows. This is good if you want to interact with the mouse on these rulers (easier to sort out what messages are for the rulers).