title: How to center the dialog caption?
body: <p>I created my IDD_DIALOG in my resource file.</p>
  
  <p>I am using the following code to center the DIALOG in the middle of a screen:</p>
  
  <pre><code>case WM_INITDIALOG:
      RECT Rect;
      ::GetWindowRect(hwndDlg, &amp;Rect);
      ::SetWindowPos(hwndDlg, HWND_TOPMOST, (::GetSystemMetrics(SM_CXSCREEN)/2 - ((Rect.right - Rect.left)/2)), (::GetSystemMetrics(SM_CYSCREEN)/2 - ((Rect.bottom - Rect.top)/2)), (Rect.right - Rect.left), (Rect.bottom - Rect.top), SWP_SHOWWINDOW);
      return TRUE;
  </code></pre>
  
  <p>My question is, how would I also center the caption (dialog title) alongside with my current code?</p>
  
  <p>Thanks.</p>