<< Return to Main Index

< Return to Class Index

CGXControl::GetChild

virtual CGXChild* GetChild(int nIndex);?

nIndex

Index for the CGXChild.

Return Value

Returns a pointer to the child control associated with the index.

Remarks

This method is useful to loop through all children:

   for (int i = 0; i < GetCount(); i++)
   {
      CGXChild* pChild;
      if ((pChild = GetChild(i)) != NULL)
         pChild->...
   }

See Also

CGXControl::GetCount CGXChild

CGXControl

Class Overview | Class Members