| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263 |
- #pragma once
- #include "../pch/pch.h"
- #include "../page/CDiandanPageUI.h"
- #include "../page/CWaimaiOrderListPageUI.h"
- #include "../page/CWaimaiOrderInfoPageUI.h"
- #include "../page/CSettingPageUI.h"
- #include "CWaimaiOrderItemUI.h"
- #include "CDiandanFoodItemUI.h"
- #include "CFoodtypeOptionUI.h"
- #include "CDiandanNatureItemUI.h"
- #include "CDiandanZhifufangshiItemUI.h"
- class CDialogBuilderCallbackEx : public IDialogBuilderCallback
- {
- public:
- CControlUI* CreateControl(LPCTSTR pstrClass)
- {
- //page相关的
- if (_tcscmp(pstrClass, _T("DiandanPage")) == 0)
- {
- return new CDiandanPageUI;
- }
- else if (_tcscmp(pstrClass, _T("WaimaiOrderListPage")) == 0)
- {
- return new CWaimaiOrderListPageUI;
- }
- else if (_tcscmp(pstrClass, _T("WaimaiOrderInfoPage")) == 0)
- {
- return new CWaimaiOrderInfoPageUI;
- }
- else if (_tcscmp(pstrClass, _T("SettingPage")) == 0)
- {
- return new CSettingPageUI;
- }
- //控件相关的
- else if (_tcscmp(pstrClass, _T("WaimaiOrderItem")) == 0)
- {
- return new CWaimaiOrderItemUI;
- }
- else if (_tcscmp(pstrClass, _T("FoodtypeOption")) == 0)
- {
- return new CFoodtypeOptionUI;
- }
- else if (_tcscmp(pstrClass, _T("DiandanFoodItem")) == 0)
- {
- return new CDiandanFoodItemUI;
- }
- else if (_tcscmp(pstrClass, _T("DiandanNatureItem")) == 0)
- {
- return new CDiandanNatureItemUI;
- }
- else if (_tcscmp(pstrClass, _T("DiandanZhifufangshiItem")) == 0)
- {
- return new CDiandanZhifufangshiItemUI;
- }
- return NULL;
- }
- };
|