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

Function DuiFindMessageEntry

DuiLib/Core/UIBase.cpp:101–125  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

99DUI_END_MESSAGE_MAP()
100
101static const DUI_MSGMAP_ENTRY* DuiFindMessageEntry(const DUI_MSGMAP_ENTRY* lpEntry,TNotifyUI& msg )
102{
103 CDuiString sMsgType = msg.sType;
104 CDuiString sCtrlName = msg.pSender->GetName();
105 const DUI_MSGMAP_ENTRY* pMsgTypeEntry = NULL;
106 while (lpEntry->nSig != DuiSig_end)
107 {
108 if(lpEntry->sMsgType==sMsgType)
109 {
110 if(!lpEntry->sCtrlName.IsEmpty())
111 {
112 if(lpEntry->sCtrlName==sCtrlName)
113 {
114 return lpEntry;
115 }
116 }
117 else
118 {
119 pMsgTypeEntry = lpEntry;
120 }
121 }
122 lpEntry++;
123 }
124 return pMsgTypeEntry;
125}
126
127bool CNotifyPump::AddVirtualWnd(CDuiString strName,CNotifyPump* pObject)
128{

Callers 1

LoopDispatchMethod · 0.85

Calls 2

IsEmptyMethod · 0.80
GetNameMethod · 0.45

Tested by

no test coverage detected