diff --git a/r5dev/thirdparty/cppnet/cppkore/Control.cpp b/r5dev/thirdparty/cppnet/cppkore/Control.cpp index cb977402..d3ce62e5 100644 --- a/r5dev/thirdparty/cppnet/cppkore/Control.cpp +++ b/r5dev/thirdparty/cppnet/cppkore/Control.cpp @@ -725,6 +725,11 @@ namespace Forms return this->_RTTI; } + uint32_t Control::GetControlCount() + { + return this->_Controls->Count(); + } + Control* Control::FindForm() { auto Cur = this; diff --git a/r5dev/thirdparty/cppnet/cppkore/Control.h b/r5dev/thirdparty/cppnet/cppkore/Control.h index 87ffbda7..978b70c2 100644 --- a/r5dev/thirdparty/cppnet/cppkore/Control.h +++ b/r5dev/thirdparty/cppnet/cppkore/Control.h @@ -209,6 +209,8 @@ namespace Forms HWND GetHandle(); // Returns the type of this control ControlTypes GetType(); + // Returns the number of child controls + uint32_t GetControlCount(); // Retrieves the form that the control is on. Control* FindForm();