| 14685 | |
| 14686 | |
| 14687 | MsgMonitorStruct *MsgMonitorList::Find(UINT aMsg, IObject *aCallback, UCHAR aMsgType) |
| 14688 | { |
| 14689 | for (int i = 0; i < mCount; ++i) |
| 14690 | if (mMonitor[i].msg == aMsg |
| 14691 | && mMonitor[i].func == aCallback // No need to check is_method, since it's impossible for an object and string to exist at the same address. |
| 14692 | && mMonitor[i].msg_type == aMsgType) // Checked last because it's nearly always true. |
| 14693 | return mMonitor + i; |
| 14694 | return NULL; |
| 14695 | } |
| 14696 | |
| 14697 | |
| 14698 | MsgMonitorStruct *MsgMonitorList::Find(UINT aMsg, LPTSTR aMethodName, UCHAR aMsgType) |