FindControlAndVerify() finds a control object by name, then verifies that it is of the appropriate type before returning it. It will also return the index of the control in the window's child list if desired. If the type doesn't match then NULL is returned.
Definition at line 1268 of file CATWindow.cpp. References CATFINDCONTROLSTRUCT::CurControl, FindControlCallback(), CATFINDCONTROLSTRUCT::FirstControl, CATGuiObj::ForEachControl(), CATFINDCONTROLSTRUCT::FoundControl, CATFINDCONTROLSTRUCT::Name, CATFINDCONTROLSTRUCT::NextControl, CATFINDCONTROLSTRUCT::PrevControl, CATFINDCONTROLSTRUCT::TargetControl, and CATFINDCONTROLSTRUCT::TypeName. Referenced by GASPilot::OnInjectWindow(), and GASPilot::OnStart().
|