title: Creating a ruler bar in MFC
body: <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>