MFC Controls

Hi everybody.

I want to dynamically create a control in a control. (MFC)
Let's say I want to create several labels in the CChildView control at runtime.
How can I do it?

1
2
CStatic *MyLabel = new CStatic;
MyLabel->Create(L"Caption",WS_VISIBLE|WS_CHILD,CRect(10,10,50,50),this,121);

That would create a label in the Form. But I don't know how to create one in the CChildView...
Topic archived. No new replies allowed.