| 11 | DUI_END_MESSAGE_MAP() |
| 12 | |
| 13 | RedisConfigUI::RedisConfigUI(const CDuiString& strXML, CPaintManagerUI* pm, Environment* env):AbstraceUI(pm, env) |
| 14 | { |
| 15 | CDialogBuilder builder; |
| 16 | /// 这里必须传入m_PaintManager,不然子XML不能使用默认滚动条等信息。 |
| 17 | CControlUI* pContainer = builder.Create(strXML.GetData(), NULL, NULL, GetPaintMgr(), NULL); |
| 18 | if (pContainer) |
| 19 | { |
| 20 | this->Add(pContainer); |
| 21 | } |
| 22 | else { |
| 23 | this->RemoveAll(); |
| 24 | return; |
| 25 | } |
| 26 | } |
| 27 | |
| 28 | RedisConfigUI::~RedisConfigUI(void) |
| 29 | { |