title: How to Insert Icon on Static Text Control in MFC?
body: <p>I'm trying to use <code>CStatic::SetIcon()</code> like this.</p>
  
  <pre><code>HICON DSN_ICON = static_cast&lt;HICON&gt;(
        ::LoadImage(AfxGetInstanceHandle(),
        MAKEINTRESOURCE(IDI_ICON_MYICON),
        IMAGE_ICON,
        16, 16,
        LR_DEFAULTCOLOR) );
  
  m_staticMyStatic.SetIcon(DSN_ICON);
  m_staticMyStatic.SetWindowText( _T("test") );
  m_staticMyStatic.EnableWindow(TRUE);
  
  ※ P.S : CSatic m_staticMyStatic;    // DDX_Control
  </code></pre>
  
  <p>When I tested using CButton, I made it. But CStatic is failed.
  How can I do it?</p>