title: dynamically created button is does not show in mfc
body: <p>So I have this code</p>
  
  <pre><code>CButton details;
  details.Create(_T("details"),WS_CHILD|WS_VISIBLE|WS_TABSTOP|BS_PUSHBUTTON,CRect(120,100,100,30), this, 15000);
  </code></pre>
  
  <p>but it doesn't do anything(created button is not visible after creating it). What am I missing?</p>
  
  <p><strong>EDIT:</strong> The code is in a dialog based application's OnInitDialog function. What it should do is to display the button.</p>