title: How to get handler(HWND) for dialog box
body: <p>Hi I have created a dialog box and it woks.</p>
  
  <p>My question is: how do you retreive the handle for it?</p>
  
  <p>Also, if you get the handle, how would you change the static text control text inside it?</p>
  
  <pre><code>class CStatisticsDlg : public CDialogEx
  {
  public:
      CStatisticsDlg();
  
  // Dialog Data
      enum { IDD = IDD_STATISTICS };
  
  protected:
      virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
  
  // Implementation
  protected:
      DECLARE_MESSAGE_MAP()
  public:
  };
  
  CStatisticsDlg::CStatisticsDlg() : CDialogEx(CStatisticsDlg::IDD)
  {
  }
  
  void CStatisticsDlg::DoDataExchange(CDataExchange* pDX)
  {
      CDialogEx::DoDataExchange(pDX);
  }
  
  BEGIN_MESSAGE_MAP(CStatisticsDlg, CDialogEx)
  END_MESSAGE_MAP()
  </code></pre>