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