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

Method FindControl

DuiLib/Core/UIControl.cpp:597–603  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

595}
596
597CControlUI* CControlUI::FindControl(FINDCONTROLPROC Proc, LPVOID pData, UINT uFlags)
598{
599 if( (uFlags & UIFIND_VISIBLE) != 0 && !IsVisible() ) return NULL;
600 if( (uFlags & UIFIND_ENABLED) != 0 && !IsEnabled() ) return NULL;
601 if( (uFlags & UIFIND_HITTEST) != 0 && (!m_bMouseEnabled || !::PtInRect(&m_rcItem, * static_cast<LPPOINT>(pData))) ) return NULL;
602 return Proc(this, pData);
603}
604
605void CControlUI::Invalidate()
606{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected