MCPcopy Create free account
hub / github.com/cinience/RedisStudio / CreateControl

Method CreateControl

RedisStudio/DuiEx/UIMenu.cpp:123–134  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

121class CMenuBuilderCallback: public IDialogBuilderCallback
122{
123 CControlUI* CreateControl(LPCTSTR pstrClass)
124 {
125 if (_tcsicmp(pstrClass, kMenuUIInterfaceName) == 0)
126 {
127 return new CMenuUI();
128 }
129 else if (_tcsicmp(pstrClass, kMenuElementUIInterfaceName) == 0)
130 {
131 return new CMenuElementUI();
132 }
133 return NULL;
134 }
135};
136
137CMenuWnd::CMenuWnd(HWND hParent):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected