title: Get text width in MFC
body: <p>I'm wanting to dynamically resize a CButton to the width of the text within it. Is there either a built-in way to do this in MFC, or a way of calculating the pixel width of some specified text (so that I can use <code>CWnd::SetWindowPos</code>)?</p>