title: Dynamically generate labels- MFC
body: <p>In my MFC project, I want to generate the labels dynamically.
  Eg:
  I have to generate 4 edit controls and corresponding labels for them- say "Label1" "Label2"....</p>
  
  <pre><code>CStatic *label[MAX_THREAD];
  for (int i=0; i&lt; dynamic_number ; i++)
  {
     label[i] = new CStatic;
     label[i]-&gt;Create(L"Name_of_label", WS_CHILD | WS_VISIBLE,
     CRect(10, (10+i*30), 70, (30+i*30)), this);
  }
  </code></pre>
  
  <p>I want "Label1" "Label2"... etc in place of "Name_of_label"
  I am not very sure how to go about it.</p>
  
  <p>Thanks in advance,</p>