CButtonUI* btn = new CButtonUI(); btn->SetText("Click me"); btn->SetPos(10, 10, 100, 30);
CComboUI* cb = new CComboUI(); cb->AddItem("Option 1"); cb->AddItem("Option 2"); cb->SetPos(10, 50, 100, 30);
CListUI* lv = new CListUI(); lv->AddColumn("Name", 100); lv->AddColumn("Age", 50); lv->AddItem("John", "25"); lv->AddItem("Jane", "30"); lv->SetPos(10, 90, 200, 100);This code creates a new list view control with two columns "Name" and "Age" and two items "John" with age "25" and "Jane" with age "30". It sets its position to (10, 90) with a width of 200 and height of 100. The package library for CControlUI is MFC (Microsoft Foundation Class) library, which is a part of Microsoft Visual Studio.