Storing string in CStatic
- by Shark
I have to create dynamically allocated array of CStatic (CStatic* array;), which then displayed on the dialog. It must be allocated and filled like this:
array = new CStatic[list_box.GetCount()];
for (int i = 0; i < list_box.GetCount(); i++) {
CString str;
list_box.GetText(i, str);
array[i].Create(str, WS_CHILD, CRect(), GetParent());
}…